Mimic.OpenInset

The Mimic.OpenInset function allows the script to open a defined display in a new window. The new window is set to be a specific size.

Syntax

Mimic.OpenInset(URL, X, Y, W, H)

Description

Opens a defined display in a new window.

Arguments

URL {string}

The address of the display that is to be opened. The URL has to use the Geo SCADA Expert address format.

X {integer}

Represents the horizontal position of the new window—the position on the 'X-Axis' at which the window begins. The number represents a percentage of the original Mimic's X coordinate.

Y {integer}

Represents the vertical position of the new window—the position on the 'Y-Axis' at which the window begins. The number represents a percentage of the original Mimic's Y coordinate.

Width {integer}

Defines the width of the new window. The number represents a percentage of the original Mimic's width.

Height {integer}

Defines the height of the new window.The number represents a percentage of the original Mimic's height.

Example:

Mimic.OpenInset "SCX:////CMimic/OverView", 20, 20, 20, 20

When the Mimic object that is associated with this script is selected, a new window will be displayed. The window will be inset at coordinates 20, 20. The coordinates are calculated as a percentage of the original Mimic's coordinates, with the top-left corner of the original Mimic being 0,0. So an X coordinate of 20 will be the original Mimic's X coordinate + 20% i.e indented from the left of the original Mimic by 20%. The Y coordinate will be the original Mimic's Y coordinate -20% i.e lower than the original Mimic by 20%.

The height and width will be 20% of the height and width of the original Mimic.

The original Mimic is the Mimic that contains the script.

For more information, see Show Another Display in an Inset Window.


Disclaimer

Geo SCADA Expert 2022