Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

WinSize

  • Last UpdatedJul 18, 2023
  • 1 minute read

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.

WinMove, WinPos

Example

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

See Also

Window Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in