Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ContextMenu[CurrentContext][Copy] - create a copy of this context menu module
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);
Install(copiedCM);
Test:-GetGeneratedMenu(6);
See Also
ContextMenu, ContextMenu[CurrentContext], ContextMenu[New]
Download Help Document