ContextMenu[CurrentContext]
Copy
create a copy of this context menu module
Calling Sequence
Description
Examples of CurrentContext[Copy]
Copy()
The Copy command creates and returns a copy of the context menu module of which it is a member.
The object returned by Copy is an entirely new module, but it generates the same context menus as the original. Copying a context menu module is useful when you want to add entries to a context menu without modifying the existing module.
with(ContextMenu):
copiedCM := CurrentContext[Copy]():
You can now freely customize the menu. Note, however, that added entries will not be visible in the Maple context-sensitive menus until you execute the Install(copiedCM) command.
copiedCM:-Entries:-Add("Divide by 3", "%EXPR / 3", integer);
Install(copiedCM);
Test:-GetGeneratedMenu(6);
See Also
ContextMenu
ContextMenu[New]
Download Help Document