Combobox question
Posted: Sun Feb 26, 2012 12:03 am
Hi,
How i can open and close editable comboBox width code. How in my code i can open menu without pressing the muosebutton?
Raimo
How i can open and close editable comboBox width code. How in my code i can open menu without pressing the muosebutton?
Raimo
Code: Select all
OpenWindow(0, 200, 100, 300, 100 , "combo", #PB_Window_SystemMenu |#PB_Window_SizeGadget|#PB_Window_ScreenCentered)
ComboBoxGadget(1, 10, 30, 280, 21,#PB_ComboBox_Editable )
For a = 1 To 5
AddGadgetItem(1, -1,"item " + Str(a))
Next
Repeat
Event = WindowEvent()
If EventType() = #PB_EventType_Change And EventGadget() = 1
AddGadgetItem(1, -1, GetGadgetText(1))
EndIf
If Event = 0
Delay(1)
EndIf
Until Event = #PB_Event_CloseWindow
End