Code : Tout sélectionner
If OpenWindow(99, 0, 0, 120, 50, #PB_Window_WindowCentered | #PB_Window_SystemMenu, "Test")
If CreateGadgetList(WindowID())
ComboBoxGadget(0, 0, 0, 120, 20)
AddGadgetItem(0, -1,"Test 1")
AddGadgetItem(0, -1,"Test 2")
SetGadgetState(0, 0)
EndIf
EndIf
Repeat
Until WindowEvent() = #PB_Event_CloseWindow