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.
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
local item = comboBox:findItemWithText( "OMG", nil )
comboBox:setItemSelectState( item, true )
comboBox:getEditbox():setText( "OMG" )
Code: Select all
CEGUI::ListboxItem* pItem = _pCombo->getDropList()->getFirstSelectedItem();
_pCombo->getEditbox()->setText(pItem->getText());
Return to “Bug Reports, Suggestions, Feature Requests”
Users browsing this forum: No registered users and 11 guests