Overview of the ContextMenu Package
Calling Sequence
Description
List of ContextMenu Package Commands
List of ContextMenu Subpackages
Compatibility
ContextMenu:-command(arguments)
command(arguments)
The ContextMenu package provides tools to control and customize the Maple context-sensitive menus. For details and usage, see Creating Context Menus.
When you select a Maple expression, in the Context Panel a menu appears with a customized set of actions that can be performed on the expression. This is a context-sensitive list. You can select a listed action and the associated command is invoked on the selected object(s).
The information necessary to generate a set of context-sensitive menus is stored in a context menu module. The currently active context menu module is accessible under the name ContextMenu:-CurrentContext.
There are several choices to make when customizing a context menu system. You can start by constructing a new, empty context menu module with the ContextMenu:-New command. You can also extend an existing context menu system by calling its Copy command.
Once you have a context menu module to work with, you can customize your context menu system using the module's package commands. See ContextMenu:-CurrentContext for details. After your custom menu entries have been added, you can make your module active with the ContextMenu:-Install command.
Each command in the ContextMenu package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The following is a list of available commands.
Install
New
Save
To display the help page for a particular ContextMenu command, see Getting Help with a Command in a Package.
The following is a list of available subpackages.
CurrentContext
Test
Prior to Maple 2018, the entries created using ContextMenu appeared in the right-click (Control-click, on Mac) menu.
The ContextMenu package was updated in Maple 2018.
See Also
Creating Context Menus
examples/ContextMenu
help
module
UsingPackages
with
Download Help Document