SET_MENU_ITEM_CHECKED

SET_MENU_ITEM_CHECKED sets the checked mode of an item in a component’s menu tree.

Syntax

CC "Application" SET_MENU_ITEM_CHECKED  component:Component item:strValue
                                        checked: 0|1.
Component :     "acquisition" | "modeling" | "analysis" |
                "simulation" | "evaluation" | "importexport" |
                "all" .
#--> RESULT ecode:intValue .

Parameters

componentstrValue, name of the component as displayed in the list above.
itemstrValue, contains the complete path of the menu item which shall be inserted.  The items of that path are separated by “\t”, like in “Model\tOpen...”.  All items before the last one must already exist.  To create a new (sub)menu, at first the parent item of that (sub)menu has to be created.  A separator can be inserted by using “-” as item name.
checked0|1

Returns

ecodeintValue, Contains the error code or is 0 in case of success.

Remarks

See Also

INSERT_MENU_ITEM, <SET_MENU_ITEM_ENABLED>

Example 1

CC "Application" SET_MENU_ITEM_CHECKED
    component:"modeling" item:"Model\tNew..." checked:1
INSERT_MENU_ITEM creates a new menu item and inserts it into a component’s menu.