ActionMenu
ActionMenu[name,{lbl1:>act1,lbl2:>act2,…}]
represents an action menu with label name and with items labeled lbli that evaluates the expression acti if the corresponding item is chosen.
Details and Options


- name and the lbli can be any expressions.
- ActionMenu by default displays name and the lbli in "ActionMenu" style, which typically uses the system menu font.
- In ActionMenu[name,list], Delimiter can appear as an element of list, specifying a horizontal delimiter in the displayed menu.
- The following options can be given:
-
Appearance Automatic the overall appearance of the menu BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the menu ContentPadding True whether to shrink the margins tightly around the contents Enabled Automatic whether the menu is enabled or grayed out Evaluator Automatic the kernel in which to evaluate the acti FrameMargins Automatic margins to leave inside the menu frame ImageMargins 0 margins around the image of the displayed menu ImageSize Automatic the overall image size of the displayed menu MenuStyle {} style specifications for menu items Method "Preemptive" the evaluation method to use - Possible settings for Appearance include:
-
None display only name, without modification Automatic display in a special action menu form (default) "PopupMenu" display like a popup menu with initial value name "Button" display like a button - Typical possible settings for the Method option include "Preemptive" and "Queued".
- The settings for BaseStyle are appended to the default style typically given by the "ActionMenu" style in the current stylesheet.
Examples
open allclose allBasic Examples (2)
Scope (3)
Options (10)
Enabled (2)
Evaluator (2)
By default, the button function is sent to the kernel for evaluation:
By setting Evaluator, the button function can be evalauted in another kernel:
Method (1)
By default, action menu functions are evaluated on a preemptive link, which times out after five seconds:
Use Method->"Queued" to evaluate button functions on the main link, which never times out:
Properties & Relations (1)
ActionMenu has the same effect as a Button series:
Text
Wolfram Research (2007), ActionMenu, Wolfram Language function, https://reference.wolfram.com/language/ref/ActionMenu.html (updated 2010).
CMS
Wolfram Language. 2007. "ActionMenu." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/ActionMenu.html.
APA
Wolfram Language. (2007). ActionMenu. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ActionMenu.html