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

AVEVA™ Plant SCADA

MenuNodeSetExpanded

  • Last UpdatedJul 18, 2023
  • 1 minute read

Set the expansion state value of the specified menu node in number. The expansion state value is defined by project designer and can be any integer value. The initial value is zero(0). It is not recommended to use -1 for the expansion state value though because this number indicates an error for MenuNodeGetExpanded function.

Note: Changes made to the menu tree will not be persisted back to the menu configuration database.

Syntax

MenuNodeSetExpanded(hNode. iValue)

hNode:

Handle to the current node in the menu tree.

iValue:

The expansion state value to set for the Menu node.

Return Value

Zero (0) if successful. -1 if hNode is invalid or an error code for any other error.

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

Example

MenuNodeSetExpanded(100, 99)
//Put 99 as an expansion state of the menu node handle 100

MenuNodeGetExpanded(100)
//This will return 99 that is stored by the previous call

See Also

Menu Functions

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