Skip to content

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 ​

leo-grammar
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 .
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 ​

  • context (strValue) - specifies which context menu shall be modified.
  • item (strValue) - the menu name to be removed

Returns ​

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

Details ​

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

Examples ​

Removing the item "Delete..." from the explorer's context menu

leo-grammar
CC "Application" REMOVE_CONTEXT_MENU_ITEM
        context:"explorer.db" item:"Delete..."
CC "Application" REMOVE_CONTEXT_MENU_ITEM
        context:"explorer.db" item:"Delete..."

Versions and Changes ​

Available since ADOxx 1.3