set text for no editable combobox

BlitzMax Forums/BlitzMax GUI Programming/set text for no editable combobox

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi ! How to select an item into a _no editable_ combobox if you only know the item 'string' value (not the index) ? In my example i want select "three".

no pb if the combobox is editable with setgadgettext
combo = createcombobox (....., COMBOBOX_EDITABLE)
AddGadgetItem Combo, "one"
AddGadgetItem Combo, "two"
AddGadgetItem Combo, "three"
SetGadgetText (combo, "three")


... but how to with the no-editable combobox version ?

Thanks !