Copy - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

ContextMenu[CurrentContext]

  

Copy

  

create a copy of this context menu module

 

Calling Sequence

Description

Examples of CurrentContext[Copy]

Calling Sequence

Copy()

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]

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);

(1)

Install(copiedCM);

Test:-GetGeneratedMenu(6);

(2)

See Also

ContextMenu

ContextMenu[CurrentContext]

ContextMenu[New]

 


Download Help Document