ContextMenu[Test] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Context-Sensitive Menus : Test : ContextMenu/Test/TestAction

ContextMenu[Test]

  

TestAction

  

test a context menu action

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Test[TestAction](action, expr)

Parameters

action

-

list(string); action from context menu

expr

-

anything; expression that generates menu

Description

• 

The Test[TestAction] command tests the result of executing the action specified by action in the context menu generated for the expression expr.

• 

The parameter action, a list of strings, represents the sequence of nested menus that must be followed in the context-sensitive menu in order to select this action.  For example, to simulate the selection of the first element of the list 1,2,3 using context-sensitive menus, enter Test[TestAction](["Select Element", "1"], [1,2,3]).

• 

The result returned by TestAction is a string, which represents the value that is returned to the worksheet if the action action is selected using context-sensitive menus.

Examples

withContextMenu:

Test[TestAction]Sorts,Single-variable,x,y+x

R := sort( y+x, x );

(1)

See Also

ContextMenu

ContextMenu[Test]

ContextMenu[Test][GetGeneratedMenu]

ContextMenu[Test][ListMenuEntries]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam