Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > 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)

Width, Height:

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

Return Value

0 (zero) if successful, otherwise an error 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