ich versuche gerade eine ComboBox mittels PostEvent() davon zu überzeugen aufzuklappen. Also so, als wäre sie angeklickt worden. Leider tut sich da nichts.
Code: Alles auswählen
If OpenWindow(0, 0, 0, 270, 85, "ComboBoxGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ComboBoxGadget(0, 10, 10, 250, 25, #PB_ComboBox_Editable)
AddGadgetItem(0, -1, "ComboBox editable...")
ComboBoxGadget(1, 10, 50, 250, 25)
For Index = 0 To 5
AddGadgetItem(1, -1, "ComboBox item " + Index)
Next
PostEvent(#PB_Event_LeftClick, 0, 1, #PB_EventType_LeftClick)
EndIf
Vielen Dank
Markus