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

AVEVA™ Plant SCADA

DspPopupConfigMenu

  • Last UpdatedJul 18, 2023
  • 2 minute read

Displays the contents of a menu node as a pop-up (context) menu, and run the command associated with the selected menu item. You can specify the contents of a menu using the menu configuration dialog at design time, or using the Menu family of Cicode functions at runtime.

Syntax

DspPopupConfigMenu(hParent, [, bNonRecursive [, XPos [, YPos]]])

hParent

The parent node of the menu tree returned from any of the following functions:

MenuGetGenericNode(), MenuGetPageNode() or MenuGetWindowNode() - used to get the parent node of menu tree for a page.

MenuGetFirstChild(), MenuGetNextChild(), MenuGetPrevChild(), MenuGetParent() - used to traverse to other nodes in a menu tree

bNonRecursive

Whether not to recursively transverse child tree nodes and list them as sub-menus in the pop-up menu. This parameter is optional. If it is left unspecified, its value will be defaulted to 0 (recursive). When it is set to 1, only the immediate child nodes of the specified menu handle will be listed. In this mode, tree nodes will be listed as normal menu items (instead of submenus) in the pop-up menu.

XPos

The x-coordinate (relative to the page) at which the menu will be displayed.This parameter is optional. If it is left unspecified, the menu will display at the cursor's current position.

YPos

The y-coordinate (relative to the page) at which the menu will be displayed.This parameter is optional. If it is left unspecified, the menu will display at the cursor's current position.

Return Value

0 if the selected menu command is run or error code if menu command cannot run.

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in