setSelected for ComboBox
Posted: Wed Jul 16, 2008 23:58
When you call set selected on the combo box, it doesn't simultaneously set the text of the edit box the combo box uses. as a result you have to say something like:
This should happen automatically when the item is set as selected.
Cheers.
ER.
Code: Select all
local item = comboBox:findItemWithText( "OMG", nil )
comboBox:setItemSelectState( item, true )
comboBox:getEditbox():setText( "OMG" )
This should happen automatically when the item is set as selected.
Cheers.
ER.