SizeW Command

Purpose

Changes the size of a window.

Syntax

SizeW [#]n, w, h

n, w, h:integer expression

Description

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.

Example

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.

Remarks

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.

See Also

OpenW, CloseW, MoveW

{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}