Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
ContextMenu[CurrentContext][HandleExpression] - determine the context menu that results in the context menu module from a right-click
Calling Sequence
HandleExpression(expr, isfullexpr)
Parameters
expr
-
list; contains the expression to handle for which context menu is determined
isfullexpr
truefalse; determines whether expr is considered to be a full expression (true) or a subselection (false)
Description
The HandleExpression command returns a nested data structure, which encapsulates the context menu structure displayed by this context menu module when the expression expr is right-clicked. The expr parameter can be any Maple object, including an expression sequence.
The HandleExpression command returns output in a specialized form used by Maple for generating its context-sensitive menus. A simplified version of this output, more suitable for use in testing, is available from the command ContextMenu[Test][GetGeneratedMenu].
The command ContextMenu[CurrentContext][HandleExpression]([expr], isfullexpr) is equivalent to ContextMenu([expr], isfullexpr).
Examples of CurrentContext[HandleExpression]
with(ContextMenu);
newCM := New():
Note the generated context-sensitive menu for newCM is empty because no entries have been added yet.
newCM:-HandleExpression(["test"], true);
Following is the result of the built-in context menu module upon on the selected object false.
CurrentContext:-HandleExpression([false], true);
See Also
ContextMenu, ContextMenu[CurrentContext], Entries[Add], Entries[AddMultiple], EntryGenerators[Get], EntryGenerators[List]
Download Help Document