REMOVE_CONTEXT_MENU_ITEM

REMOVE_CONTEXT_MENU_ITEM removes a menu item from a context menu.  It may be a custom (see INSERT_CONTEXT_MENU_ITEM) or a built-in menu item.

Syntax

CC "Application" REMOVE_CONTEXT_MENU_ITEM context:Context item:strValue .
Context :   "drawingarea.general" | "drawingarea.mobject" |
            "drawingarea.connector" | "drawingarea.swimlane" |
            "modelingtable" |"explorer.db" |
            "explorer.windows" | "startpage.thumb" .
#--> RESULT ecode:intValue .

Parameters

contextstrValue, specifies which context menu shall be modified.
itemstrValue, the menu name to be removed

Returns

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

Remarks

The meaning of the context and item parameters are the same as for the command INSERT_CONTEXT_MENU_ITEM.  Built-in and custom context menu items can be removed.

See Also

INSERT_CONTEXT_MENU_ITEM, <REMOVE_ALL_SUB_CONTEXT_MENU_ITEMS>

Example 1

Removing the item “Delete...” from the explorer’s context menu

CC "Application" REMOVE_CONTEXT_MENU_ITEM
        context:"explorer.db" item:"Delete..."
INSERT_CONTEXT_MENU_ITEM inserts a new (custom) menu item into a context menu.