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

AVEVA™ Plant SCADA

MenuNodeGetCurr

  • Last UpdatedJul 18, 2023
  • 1 minute read

Each menu node can have a Command associated with it when a menu is configured. This function allows you to get the handle of the menu node when this associated command is called.

Note: This function should only be used with expressions or Cicode functions invoked from the Command field of a menu configuration record.

Syntax

MenuNodeGetCurr( )

Return Value

The handle of the menu node.

MenuGetChild, MenuGetFirstChild, MenuGetGenericNode, MenuGetNextChild, MenuGetPageNode, MenuGetParent, MenuGetPrevChild, MenuGetWindowNode, MenuNodeAddChild, MenuNodeGetDepth, MenuNodeGetExpanded, MenuNodeGetProperty, MenuNodeGetTargetPage, MenuNodeHasCommand, MenuNodeIsDisabled, MenuNodeIsHidden, MenuNodeRemove, MenuNodeRunCommand, MenuNodeSetDisabledWhen, MenuNodeSetHiddenWhen, MenuNodeSetProperty, MenuReload

Example

// Assume the following Cicode function is set to the Command field of a menu configuration record

FUNCTION MyMenuCommand()

INT hNode = MenuNodeGetCurr(); // Get the current menu node that runs this command

// Get more information from the menu record

STRING sTargetPage = MenuNodeGetProperty(hNode, 13);

// Display the page

PageDisplay(sTargetPage);

END

See Also

Menu Functions

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