EnableExplicit Define i Define pgStatic If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) PanelGadget(1,10,10,480,230) For i=1 To 5 AddGadgetItem (1,-1,"Panel "+Str(i),0,0) Next SetWindowLongPtr_(GadgetID(1),#GWL_STYLE,GetWindowLongPtr_(GadgetID(1),#GWL_STYLE)|#TCS_BOTTOM) CloseGadgetList() Repeat For i = 1 To CountGadgetItems(1) pgStatic = FindWindowEx_(GadgetID(1),pgStatic,"Static", 0) MoveWindow_(pgStatic,0,0,260,180,1) Next i Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf ; IDE Options = PureBasic 5.11 (Windows - x86) ; CursorPosition = 6 ; EnableXP