Changes the size of a window.
SizeW [#]n, w, h
n, w, h:integer expression
SizeW #n, w, h changes the size of the window specified in n (0 to _maxInt). w specifies the new width and h the new height in pixels. The position of the window (upper left corner) remains unchanged. When the window doesn't have a number, the handle can be specified.
Local a%
OpenW # 1, 10, 10, 240, 100, -1
Print "Press any key to increase the window size"
KeyGet a%
SizeW # 1, 400, 200
Draws a window on the screen and waits for a key press. The window size is then changed.
Any window or control can be sized. For Ocx objects you can also use the Move method, but for forms this method takes the coordinates in twips.
{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}