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

AVEVA™ InTouch HMI

Position a touch-sensitive window

  • Last UpdatedMar 17, 2025
  • 2 minute read

You can make a window appear during run time in a precise location relative to a touch sensitive object. For example, an operator can select an object to view the status, name, or other data linked to that object. When the operator selects the object, either by a click or mouse-over, the window appears in the location you specify.

Use the script functions ShowAt() or ShowTopLeftAt() with the system read only tags $ObjHor and $ObjVer to locate the window relative to the object. You can also use fixed positions in these functions.

If the Windows Display Properties is set to the Windows XP theme, this functionality is erratic under certain circumstances.

The syntax looks like this:

ShowTopLeftAt (windowname, $ObjHor, $ObjVer);

where

windowname: the name of the window to be opened.

$ObjHor: the horizontal position of the center of the object selected.

$ObjVer: the vertical position of the center of the object selected.

The new window appears with its top left corner at the center of the selected object.

A similar script function opens the window with its center at the center of the selected object. The syntax looks like this:

ShowAt (windowname, $ObjHor, $ObjVer);

Open a window at the selected object

  1. Design, name, and create the window to appear.

  2. On the Draw menu, in the Mode group, select Animate.

    Alternatively, right-click the object and then select Animation Links.

    The Animation Links window appears.

  3. In the Touch Pushbuttons section, select Action.

    The Touch -> Action Script dialog box appears.

    Touch: Action Script dialog

  4. Type one of following scripts according to the syntax defined previously:

    ShowTopLeftAt (windowname, $ObjHor, $ObjVer);

    or

    ShowAt (windowname, $ObjHor, $ObjVer);

  5. In the Condition Type box, click the mouse action to open the window.

  6. Select OK.

TitleResults for “How to create a CRG?”Also Available in