Code: Select all
#dist = 10 ; frame width between window and panel
OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
PanelGadget(0, #dist, #dist, WindowWidth(0) - #dist * 2, WindowHeight(0) - #dist * 2)
AddGadgetItem (0, -1, "Panel 1")
AddGadgetItem (0, -1, "Panel 2")
CloseGadgetList()
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
Mac OS: