Code: Select all
If OpenWindow(0, 0, 0, 300, 300, "Resize me !", #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
;The first way
WindowBounds(0, 300, 300, 0, 0)
;The second way
;WindowBounds(0, 200, 200, 100000000, 100000000)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf