ContextMenu[CurrentContext]
HandleExpression
determine the context menu that results in the context menu module for a selection
Calling Sequence
Parameters
Description
Examples of CurrentContext[HandleExpression]
HandleExpression(expr, isfullexpr)
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)
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 selected. 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).
with(ContextMenu);
CurrentContext,Install,New,Save,Test
newCM := New():
Note the generated context-sensitive menu for newCM is empty because no entries have been added yet.
newCM:-HandleExpression(["test"], true);
CONTEXTMENU⁡Context Menu Actions,,
Following is the result of the built-in context menu module upon on the selected object false.
CurrentContext:-HandleExpression([false], true);
CONTEXTMENU⁡Context Menu Actions,,Apply a Command,Apply a command,CM_GenericActionx↦ContextMenu:−Interactive:−Apply⁡op⁡x,true,→,Negate Boolean,Negate the boolean expression,CM_GenericActionnot(%EXPR),true,→negate boolean,<SeparatorLine>,CONTEXTMENU⁡Signal Processing,,CONTEXTMENU⁡Signal Generation,,Generate Signal Using Sample Rate,Generate signal using sample rate,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1, %2, %3, 'noisetype' = '%4', 'noisedeviation' = %5, 'mirror' = '%6', 'copies' = '%7', 'output' = 'signal' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Sample rate: ,ContextMenu,,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive real number the sample rate,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify sample options,ContextMenu,true,→Generate signal,Generate Signal Using Time Range,Generate signal using time range,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1 = %2 .. %3, %4, 'noisetype' = '%5', 'noisedeviation' = %6, 'mirror' = '%7', 'copies' = '%8', 'output' = 'signal' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Start time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the start time,ContextMenu,_MessageCatalogue/GetMessage⁡Finish time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the finish time,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify options,ContextMenu,true,→Generate signal,CONTEXTMENU⁡Visualizations,,Generate Periodogram Using Sample Rate,Generate periodogram using sample rate,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1, %2, %3, 'noisetype' = '%4', 'noisedeviation' = %5, 'mirror' = '%6', 'copies' = '%7', 'output' = 'periodogram' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Sample rate: ,ContextMenu,,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive real number the sample rate,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify options,ContextMenu,true,→Generate periodogram,Generate Periodogram Using Time Range,Generate periodogram using time range,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1 = %2 .. %3, %4, 'noisetype' = '%5', 'noisedeviation' = %6, 'mirror' = '%7', 'copies' = '%8', 'output' = 'periodogram' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Start time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the start time,ContextMenu,_MessageCatalogue/GetMessage⁡Finish time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the finish time,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify options,ContextMenu,true,→Generate periodogram,Generate Signal Plot Using Sample Rate,Generate signal plot using sample rate,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1, %2, %3, 'noisetype' = '%4', 'noisedeviation' = %5, 'mirror' = '%6', 'copies' = '%7', 'output' = 'signalplot' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Sample rate: ,ContextMenu,,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive real number the sample rate,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify options,ContextMenu,true,→Generate signal plot,Generate Signal Plot Using Time Range,Generate signal plot using time range,CM_GenericAction↦ContextMenu:−Interactive:−Query⁡SignalProcessing:-GenerateSignal( %EXPR, %1 = %2 .. %3, %4, 'noisetype' = '%5', 'noisedeviation' = %6, 'mirror' = '%7', 'copies' = '%8', 'output' = 'signalplot' ),_MessageCatalogue/GetMessage⁡Time variable: ,ContextMenu,,name,tooltip=_MessageCatalogue/GetMessage⁡Enter the name of the time variable,ContextMenu,_MessageCatalogue/GetMessage⁡Start time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the start time,ContextMenu,_MessageCatalogue/GetMessage⁡Finish time: ,ContextMenu,,realcons,tooltip=_MessageCatalogue/GetMessage⁡Enter a real number for the finish time,ContextMenu,_MessageCatalogue/GetMessage⁡Number of points: ,ContextMenu,,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of sample points,ContextMenu,_MessageCatalogue/GetMessage⁡Noise type: ,ContextMenu,additive,multiplicative,tooltip=_MessageCatalogue/GetMessage⁡Select the type of noise,ContextMenu,_MessageCatalogue/GetMessage⁡Noise standard deviation: ,ContextMenu,0.0,algebraic,tooltip=_MessageCatalogue/GetMessage⁡Enter a non-negative real number for the noise standard deviation,ContextMenu,_MessageCatalogue/GetMessage⁡Mirror: ,ContextMenu,none,symmetric,antisymmetric,tooltip=_MessageCatalogue/GetMessage⁡Select the type of mirror,ContextMenu,_MessageCatalogue/GetMessage⁡Number of copies: ,ContextMenu,1,posint,tooltip=_MessageCatalogue/GetMessage⁡Enter a positive integer for the number of copies,ContextMenu,title=_MessageCatalogue/GetMessage⁡Specify options,ContextMenu,true,→Generate signal plot,<SeparatorLine>,Help on Command,Display the help page for this command,CM_GenericActionprocxeval⁡help⁡op⁡1,x;%CANCELend proc,false,→command help
See Also
ContextMenu
Entries[Add]
Entries[AddMultiple]
EntryGenerators[Get]
EntryGenerators[List]
Download Help Document