Set - 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][Categories]

  

Set

  

set entry generator to Categories table for use within context menu module

 

Calling Sequence

Parameters

Description

Examples of Categories[Set]

Calling Sequence

Categories[Set](entry, category)

Parameters

entry

-

string; top-level menu entry

category

-

string; name of category

Description

• 

The Categories[Set] command associates a top-level menu entry with a given category.

Examples of Categories[Set]

with(ContextMenu[CurrentContext]);

Categories,Copy,Entries,EntryGenerators,HandleExpression,Queries

(1)
  

In this example, "Language Conversions" and "Test Primality" have distinct categories.  Therefore, if a context-sensitive menu, which includes both categories, is generated, it should insert a delimiter between them.

Categories[Set]("Language Conversions", "Category 1");

Categories[Set]("Test Primality", "Category 2");

Entries[Add]("Test Primality",  "isprime(%EXPR)", integer);

432

(2)

Entries[Add]("To Matlab",  "CodeGeneration[Matlab](%EXPR)", algebraic, submenu=["Language Conversions"]);

836

(3)

Entries[Add]("To Fortran", "CodeGeneration[Fortran](%EXPR)", algebraic, submenu=["Language Conversions"]);

853

(4)

See Also

Categories/Get

Categories/List

ContextMenu

ContextMenu[CurrentContext][Categories]