ContextMenu[CurrentContext][Entries] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Context-Sensitive Menus : CurrentContext : Entries : ContextMenu/CurrentContext/Entries/Enable

ContextMenu[CurrentContext][Entries]

  

Enable

  

enable an entry in the context menu

 

Calling Sequence

Parameters

Description

Examples of Entries[Enable]

Calling Sequence

Entries[Enable](action)

Parameters

action

-

string or list(string); menu entry to be enabled

Description

• 

The Entries[Enable] command enables an entry to be displayed in the context menu.  If a selected object satisfies the criteria for this entry's display, the entry will appear in a context menu.

• 

The parameter action specifies the action or actions to enable. If action is a string, any entry in the top-level context menu with this name will be enabled.  If action is a list of strings, this is interpreted as a hierarchical sequence of submenus starting from the top-level menu.  Any menu entries whose submenu entry sequence begins with action will be enabled.

Examples of Entries[Enable]

with(ContextMenu[CurrentContext]):

  

Enable the top-level menu entry that negates a boolean value.

Entries[Enable]("Negate");

  

Enable the submenu entry that sorts a list in ascending order.

Entries[Enable](["Sorts", "Ascending Order"]);

See Also

ContextMenu

ContextMenu[CurrentContext]

Entries/Add

Entries/Disable

 


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