WindowBounds()
Syntax
WindowBounds(#Window, MinimalWidth, MinimalHeight, MaximalWidth, MaximalHeight)Description
Changes the minimal and maximal #Window dimensions (in pixels). This is useful to prevent a window from becomming too small or too big when the user resizes it. It's possible to use #PB_Ignore instead of specifying a width/height value to keep the current value.
Example:If OpenWindow(0, 0, 0, 300, 300, "Resize me !", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget) WindowBounds(0, 200, 200, 400, 400) Repeat Event = WaitWindowEvent() Until Event = #PB_Event_CloseWindow EndIf
Supported OS
All