The combobox is a useful drop-down list widget. It will pop-up a choice window for the user to select a string. It does not support a scrolling drop-down list so it is best suited when there are a few options . It does automatically determine if the choice-list is shown upward or downward depending on the space left in the room. to assign items you use the items array;
items=’Combo Line 1′;
items=’Combo Line 2′;
items=’Combo Line 3′;
items=’Combo Line 4′;
Once the user selects from the drop down list then the string is copied into the uiTextValue of the parent combobox. So you can grab the combobox.uiTextValue to see what was selected, or you can get the itemindex that was selected using combobox.itemindex (0= first item). You can use the modified property to see if it was modified since the create. See demo project to see examples.
itemindex = -1; (-1=no selection, or index of array of selection, 0=first item)
To get the currently selected item from the combobox you use this variable.
uiDrawLines=true; This will determine if you want lines drawn between lines on drop-down
uiDrawArrowUp=false; This will force the drop-down box to draw-upward.