ContextMenu[CurrentContext][Copy] - create a copy of this context menu module
|
Description
|
|
•
|
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.
|
|
|
Examples of CurrentContext[Copy]
|
|
>
|
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);
|
| (1) |
>
|
Test:-GetGeneratedMenu(6);
|
| (2) |
|
|
Download Help Document
Was this information helpful?