| Having an option to call SelectGadgetItem(combobox,-1) is very useful for setting an undetermined state.  For example if I have a property editor open with two objects selected with different values, I would like to show this by selecting item -1 (no selection). 
 
 Import MaxGui.Drivers
Strict 
Local window:TGadget
Local combobox:TGadget
window=CreateWindow("My Window",30,20,200,200)
combobox=CreateComboBox(4,4,120,22,window)
AddGadgetItem combobox,"Short"
AddGadgetItem combobox,"Medium"
AddGadgetItem combobox,"Fat",True
AddGadgetItem combobox,"Humungous"
SelectGadgetItem combobox,-1
While WaitEvent()
	Select EventID()
		Case EVENT_GADGETACTION
			Print "eventdata="+EventData()
		Case EVENT_WINDOWCLOSE
			End
	End Select
Wend
 
 |