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

AVEVA™ InTouch HMI

Use Alarm Tree Viewer control ActiveX events to trigger scripts

Use Alarm Tree Viewer control ActiveX events to trigger scripts

  • Last UpdatedJul 19, 2024
  • 1 minute read

You can assign QuickScripts to Alarm Tree Viewer control events, such as a mouse click or double-click. When the event occurs, the QuickScript runs.

The Alarm Tree Viewer control supports the following events:

  • Click

  • DoubleClick

  • ShutDown

  • StartUp

The Click event has one parameter called ClicknElementID, which identifies the element in the tree that is clicked at run time.

The DoubleClick event has one parameter called DoubleClicknElementID, which identifies the element in the tree that is double-clicked at run time.

For the Click and DoubleClick events, an ElementID of -1 is returned for the "All Providers" node.

Note: The Alarm Tree Viewer control ignores the user interface methods when they are called from the StartUp event, because the control is not visible yet. These methods include: AboutBox(), CheckElementMembership(), Freeze(), GetAlarmQueryFromSelection(), GetElementCount(), GetElementName(), GetElementPath(), GetSelectedElementCount(), GetSelectedElementName(), GetSelectedElementPath(), GetSubElementCount(), GetSubElementName(), GetSubElementPath(), and Refresh().

For more information about scripting ActiveX events, see Scripting ActiveX Controls.

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