GetSelectedInfo

(Engine-Level Function)

Description: Returns information about selected graphic item(s) in a window.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Graphics
Related to: CurrentWindow | GetSelected
Format: GetSelectedInfo(Object, Mode)
Parameters:  
Object
Required. Any object expression for the window containing selected graphics.
Mode
Required. Any numeric expression that defines what information to return:

Mode

Information to return

0

Minimum left side user coordinate

1

Minimum bottom side user coordinate

2

Maximum right side user coordinate

3

Maximum top side user coordinate

Comments: If no graphic objects are selected, the return value will be meaningless.

Example:

  sel = GetSelectedInfo(CurrentWindow(), 0);

This statement will set sel to the minimum left side (user) coordinate out of all selected graphic objects that are in the VTScada window that the mouse is over.