ContextMenu[CurrentContext][Categories]
Set
set entry generator to Categories table for use within context menu module
Calling Sequence
Parameters
Description
Examples of Categories[Set]
Categories[Set](entry, category)
entry
-
string; top-level menu entry
category
string; name of category
The Categories[Set] command associates a top-level menu entry with a given category.
with(ContextMenu[CurrentContext]);
Categories,Copy,Entries,EntryGenerators,HandleExpression,Queries
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
Entries[Add]("To Matlab", "CodeGeneration[Matlab](%EXPR)", algebraic, submenu=["Language Conversions"]);
836
Entries[Add]("To Fortran", "CodeGeneration[Fortran](%EXPR)", algebraic, submenu=["Language Conversions"]);
853
See Also
Categories/Get
Categories/List
ContextMenu
Download Help Document