Set ComboBox to "unselected?"

BlitzMax Forums/BlitzMax Programming/Set ComboBox to "unselected?"

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!

I have a combobox with 4 items and just want to set it to -1 state = unselected, so that the combobox displays an empty field then.

Strict 

Local window:TGadget
Local combobox:TGadget

window=CreateWindow("My Window",30,20,200,200)

combobox=CreateComboBox(4,4,120,22,window)
AddGadgetItem combobox,"Item 1"
AddGadgetItem combobox,"Item 2"
AddGadgetItem combobox,"Item 3"
AddGadgetItem combobox,"Item 4"

While WaitEvent()
	Select EventID()
		Case EVENT_GADGETACTION
			Print "eventdata="+EventData()
		Case EVENT_WINDOWCLOSE
			End
	End Select
Wend


How to do that?