Applies To:
  • CitectSCADA 6.00
  • CitectHMI 6.00

How do I disable the right-click (context) menu for the process analyst at run time?

The "ContextMenu" property of the process analyst ActiveX object can set to enable (default) or disable the context menu by the following function:

_ObjectSetProperty(ObjectByName("ANx"), "ContextMenu", iSetting)

x is the animation number of the process analyst ActiveX object and iSetting is either 0 (disable) or 1 (enable).

This property can be set any time during run time and gets stored in the saved process analyst view file (*.pav), so that the context menu may be on for some views and not others.

If you wish to assign this command to your graphics page use the "On page shown" event. This event guarantees that all ActiveX objects on the page are initialized so that you can call methods and set property values on them.