Syntax
wgComboBox():New( oParent, aItems, [cLabel], [nSelected] ) --> oComboBox
oComboBox:onChange := {| oComboBox | ... }Arguments
oParent
Window or layout container.
aItems
Array of list items in display order.
cLabel
Optional label shown above the list.
nSelected
Initial one-based index. The default is 1. Use 0 for an initially unselected list.
Return value
The combo box object.
Description
:value contains the index and :text contains the label. onChange runs when the user selects an item. Read aItems[ oComboBox:value ] when the index identifies an item.