MenuNodeIsDisabled
Checks whether the menu node is disabled by evaluating its DisabledWhen cicode expression.
Syntax
MenuNodeIsDisabled(hNode)
hNode:
Handle of node to check.
Return Value
1 if menu node DisabledWhen expression evaluates to true, 0 if menu node DisabledWhen expression evaluates to false.
Related Functions
MenuGetChild, MenuGetFirstChild, MenuGetGenericNode, MenuGetNextChild, MenuGetPageNode, MenuGetParent, MenuGetPrevChild, MenuGetWindowNode, MenuNodeAddChild, MenuNodeGetProperty, MenuNodeHasCommand, MenuNodeIsHidden, MenuNodeRemove, MenuNodeRunCommand, MenuNodeSetDisabledWhen, MenuNodeSetHiddenWhen, MenuNodeSetProperty, MenuReload
Example
INT hNode = MenuNodeFirstChild(hParent); IF (MenuNodeIsDisabled(hNode)) THEN ! set the menu item graphic state to disabled END
See Also