|Liberty BASIC Help Online
The special variables WindowWidth and WindowHeight specify the width and height of the next window to be opened. If the program's code does not specify the values for these special variables, their defaults will be 320 and 360 respectively. After a resize event that is trapped by the resizehandler command, these variables contain the width and height of the client area of the window. the client area is the workspace of the window that is contained within the sizing frame, border or titlebar. See resize.bas for an example of this usage.
The following example will open a graphics window 250 pixels wide and 100 pixels high.
WindowWidth = 250
WindowHeight = 100
open "test window" for graphics as #testHandle
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/