Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ContextMenu[CurrentContext][Categories][Set] - set entry generator to Categories table for use within context menu module
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]);
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);
Entries[Add]("To Matlab", "CodeGeneration[Matlab](%EXPR)", algebraic, submenu=["Language Conversions"]);
Entries[Add]("To Fortran", "CodeGeneration[Fortran](%EXPR)", algebraic, submenu=["Language Conversions"]);
See Also
Categories/Get, Categories/List, ContextMenu, ContextMenu[CurrentContext][Categories]
Download Help Document