create a copy of this context menu module - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Context-Sensitive Menus : CurrentContext : ContextMenu/CurrentContext/Copy

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

211

(1)

Install(copiedCM);

Test:-GetGeneratedMenu(6);

Apply a Command,Assign to a Name,Integer Factors,Next Prime,Plots,Plot Builder,Test Primality,|,Integer Functions,Integer Base 10 Log,Integer Base 2 Log,Integer Natural Log,Units,Affix Unit,Atomic,bohr,electron,electron mass,electron per second,electron*bohr,electron*bohr^2/volt,electron/bohr^2,electron^2/hartree,electron_mass*bohr/second^2,hartree,hartree per second,hartree/bohr,hartree/tesla,hartree/tesla*bohr^3,hartree/tesla^2,permittivity,planck,second,tesla,volt,volt*second,volt*second^2/electron,volt/bohr,CGS,barye,centimeter,dyne,erg,erg/second,g,gram,kyne,radian,second,steradian,EMU,abampere,abcoulomb,abfarad,abhenry,abohm,absiemens,abtesla,abvolt,abweber,barye,centimeter,dyne,erg,erg/second,g,gram,joule,kilogram,kyne,meter,newton,pascal,radian,second,steradian,watt,FPS,foot,horsepower,pound,poundal,poundal*foot,poundforce/inch^2,radian,second,steradian,MTS,kilojoule,kilowatt,meter,pieze,radian,second,steradian,sthene,tonne,SI,coulomb,farad,henry,joule,kilogram,lumen,lux,meter,newton,ohm,pascal,radian,second,siemens,steradian,tesla,volt,watt,weber,|,Divide by 3,Number Theory Functions,Divisors,Number of Positive Divisors,Number of Primes,Sum of Divisors,Totient Function

(2)

See Also

ContextMenu, ContextMenu[CurrentContext], ContextMenu[New]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam