API fill listbox

From Vendetta Lua
Jump to: navigation, search

fill_listbox

Definition: fill_listbox(userdata control, table itemlist, int curselindex, function setup_cb, bool show_quantity, show_price) -> table dialoglist
Description:
fill a listbox with listsubdialogs according to given values
Arguments:
control iup list to fill
itemlist list of iteminfo
curselindex index of current selection setup_cb function called for each item in itemlist. see: setup_cb
click_cb function to after clicking on an item
show_quantity show item quantity in list
show_price show item price in list
Returns:
dialoglist list of listsubdialog
Example:
see: Example