ContextMenu[CurrentContext][Categories] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

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

683

(3)

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

700

(4)

See Also

Categories/Get

Categories/List

ContextMenu

ContextMenu[CurrentContext][Categories]

 


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