Skip to content

SetMinWindowSize

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

SetMinWindowSize

SetMinWindowSize:Void window:Int32, width:Int32=-1, height:Int32=-1
Parameter Mode Type Default Description
window In Int32 required Handle of a window that can be resized.
width In Int32 -1 Smallest width. Defaults to -1, which takes the current width.
height In Int32 -1 Smallest height. Defaults to -1, which takes the current height.

Description

Sets how small the user may make a window. Without the sizes, the current size of the window becomes the smallest one. The biggest size is always the size of the desktop.

Differences

  • The help lists height before width in its syntax line, the real order is width then height.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Not too small", 20, 20, 240, 160, Desktop(), 15)
SetMinWindowSize win, 160, 100
Repeat
Until WaitEvent() = $803

Related Commands

ActivateWindow, ActiveWindow, CreateWindow, MaximizeWindow, MinimizeWindow, RestoreWindow, SetStatusText, UpdateWindowMenu

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally