Description: This function returns information about selected graphic item(s) in a window.
Returns: Numeric
Usage: Script or Steady State
Format: GetSelectedInfo(Object, Mode)
Parameters: Object { window object } { required } { no default }
Any object expression for the window containing selected graphics.
Mode { numeric } { required } { no default }
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 VTS window that the mouse is currently over.
See Also: