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

Online Help

All Products    Maple    MapleSim


ContextMenu[CurrentContext][Entries]

  

AddMultiple

  

add multiple entries to the context menu module

 

Calling Sequence

Parameters

Description

Examples of Entries[AddMultiple]

Calling Sequence

Entries[AddMultiple](L1, ..., Ln, global_opts)

Parameters

Li

-

list; batches of entries to add to context menu

global_opts

-

(optional) equation(s) of the form option=value, where option is one of 'active', 'autoassign', 'category', 'entry_generator', 'helpstring', 'submenu', or 'test'; specify additional information for each entry

Description

• 

The Entries[AddMultiple] command adds a batch of entries to the context menu module.

• 

The parameters Li must be lists of the form nm,action,type,opts where nm, action, type, opts correspond to the identically named arguments in Entries[Add].

• 

Executing Entries[AddMultiple](L1, ..., Ln, global_opts) is equivalent to executing the command Entries[Add](op(Li), global_opts) for each list Li.

• 

If an optional parameter is specified both inside a list Li and in global_opts, the value specified inside Li is used.

• 

For more information on adding options, see the Entries[Add] help page where global_opts correspond to the identically named optional parameters opts listed.

Examples of Entries[AddMultiple]

with(ContextMenu[CurrentContext]):

  

Add entries to the context menu that draw or obtain details about a geometry object.

Entries[AddMultiple](
  ["Details",
   "geometry['detail']( %EXPR )",
   And('symbol', Not(last_name_eval),
   Not(constant) ),
   'helpstring'="Get details about the object"],
  ["Draw",
   "geometry['draw']( %EXPR )",
   And('symbol', Not(last_name_eval),
   Not(constant) ),
   'helpstring'="Draw the object", 'autoassign'=false],
  'test'=And(Not("assigned"),"geometry object")):

  

Add entries to the context menu that sort a list in ascending or descending order.

Entries[AddMultiple](
  ["Ascending Order",
   "sort( %EXPR, '`<`' )",
   list('numeric'),
   'helpstring'="Sort the list in ascending order"],
  ["Descending Order",
   "sort( %EXPR, '`>`' )",
   list('numeric'),
   'helpstring'="Sort the list in descending order"],
  'test'="has >=2 entries",
  'submenu'=["Sorts"]):

  

Add entries to the context menu that create two- or three-dimensional plots of an expression sequence of algebraics in at most one variable.

Entries[AddMultiple](
  ["2-D Plot",
   "smartplot([ %EXPR ])",
   exprseq,
   'helpstring'="Generate 2-D plots"],
  ["3-D Plot",
   "smartplot3d([ %EXPR ])",
   exprseq,
   'helpstring'="Generate 3-D plots"],
  'test'=And("algebraics", "Plot", "<=1 var", "Plottable"),
  'submenu'=["Plots"],
  'autoassign'=false):

See Also

ContextMenu

ContextMenu[CurrentContext]

Entries/Add

Entries/Disable

Entries/Enable