Cicode Programming Reference > Cicode Function Categories > Window Functions > WinSize

WinSize

Sizes the active window. The origin of the window does not move.

Note: This function is not supported in the server process in a multiprocessor environment. Calling this function from the server process results in a hardware alarm being raised.

Syntax

WinSize(Width, Height, Mode)

Width, Height:

The new width and height of the window, in pixels.

If the target is a pinned window, the new width and height will be measured against the original window size as it is on the unscaled version of the page that hosts it.

Mode:

Specifies if the size refers to the viewable area or the total window.

0 - the size to refer to the viewable area.

1 - the size to refer to the total window size.

Default - 1

Return Value

0 (zero) if successful, otherwise an error code is returned.

Related Functions

WinMove, WinPos

Example

WinSize(200,100);
! Sizes the active window to 200 pixels wide x 100 pixels high.

See Also

Window Functions

Published June 2018