Skip to content

REMOVE_MENU_ITEM ​

REMOVE_MENU_ITEM removes a menu item from a component's menu bar or from a popup menu of a component's menu bar.

Syntax ​

leo-grammar
CC "Application" REMOVE_MENU_ITEM	component:Component item:strValue

Component :		"acquisition" | "modeling" | "analysis" 
				"simulation" | "evaluation" | "importexport" | 
				"all" .

#--> RESULT ecode:intValue .

Parameters ​

  • component (strValue) - name of the component as displayed in the list above.
  • item (strValue) - contains the path to the menu item which shall be removed. The items of that path are separated by "\t", like in "Model\tOpen...". An item string without "\t" (e.g. "Model") means that a top-level item of a component's menu bar shall be removed.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

See Also ​

INSERT_MENU_ITEM

Examples ​

Removing the "Model -- Open" menu item

leo-grammar
CC "Application" REMOVE_MENU_ITEM
    component:"modeling" item:"Model\tOpen..."

Removing the complete "Bewertung" menu

leo-grammar
CC "Application" debug REMOVE_MENU_ITEM component:"modeling"
    item:"Bewertung"

Versions and Changes ​

Available since ADOxx 1.3