a non-editable ComboBoxGadget should open its items when clicking on the Text (like in PureBasic):
Example:
Code: Select all
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
SetGadgetState(0, 0)
SetGadgetState(1, 2) ; set (beginning with 0) the third item as active one
CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
EndIf
@all: is there a quick workaround for this?
Thanks in advance & Greetings ... Peter