Cicode Programming Reference > Cicode Function Categories > Menu Functions Introduction > Menu Functions

Menu Functions

The following functions allow you to access the contents of the menu configuration database in a tree-like format, and change the contents of the tree. Be reminded that changes made to the menu tree will not be persisted back to the menu configuration database.

MenuGetChild

Returns the handle to the child node with the specified name.

MenuGetFirstChild

Returns the handle to the first child of a menu node.

MenuGetGenericNode

Returns the handle to the base node of the menu tree for the generic pages.

MenuGetNextChild

Returns the next node that shares the same parent.

MenuGetPageNode

Returns the handle to the base node of the menu tree of a specified page.

MenuGetParent

Returns the parent node of the menu item.

MenuGetPrevChild

Returns the previous node that shares the same parent.

MenuGetWindowNode

Returns the handle to the root node for a given window.

MenuNodeAddChild

Dynamically adds a new item to the menu at runtime.

MenuNodeGetProperty

Return the item value of the specified menu node.

MenuNodeHasCommand

Checks whether the menu node has a valid cicode command associated with it.

MenuNodeIsDisabled

Checks whether the menu node is disabled by evaluating its DisabledWhen cicode expression.

MenuNodeIsHidden

Checks whether the menu node is hidden by evaluating its HiddenWhen cicode expression.

MenuNodeRemove

Remove the menu node from the menu tree.

MenuNodeRunCommand

Run the associated command for a menu node.

MenuNodeSetDisabledWhen

Set the DisabledWhen expression for a newly added node.

MenuNodeSetHiddenWhen

Set the HiddenWhen expression for a newly added node.

MenuNodeSetProperty

Set the item value of the specified menu node.

MenuReload

Reload base Menu Configuration from the compiled database.

See Also

Cicode Functions