This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Updated In 8 Graphic
represents an action menu with label name and with items labeled that evaluates the expression if the corresponding item is chosen.
  • name and the can be any expressions.
  • ActionMenu by default displays name and the in style, which typically uses the system menu font.
  • In ActionMenu, Delimiter can appear as an element of list, specifying a horizontal delimiter in the displayed menu.
  • The following options can be given:
AppearanceAutomaticthe overall appearance of the menu
BaseStyle{}base style specifications for the menu
ContentPaddingTruewhether to shrink the margins tightly around the contents
EnabledAutomaticwhether the menu is enabled or grayed out
EvaluatorAutomaticthe kernel in which to evaluate the
FieldSize{{1,50},{1,10}}the size of the field for menu items
FrameMarginsAutomaticmargins to leave inside the menu frame
ImageMargins0margins around the image of the displayed menu
ImageSizeAutomaticthe overall image size of the displayed menu
MenuStyle{}style specifications for menu items
Method"Preemptive"the evaluation method to use
Nonedisplay only name, without modification
Automaticdisplay 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 and .
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Create an action menu that prints the result of an evaluation:
Create an action menu that performs a simple assignment operation:
Create an action menu that prints the result of an evaluation:
Click for copyable input
Create an action menu that performs a simple assignment operation:
Click for copyable input
Use Delimiter to separate menu items:
The labels can be any expression:
Use different display appearances for the menu:
Remove extra whitespace around a label with no ascenders or descenders:
By default, ActionMenu is enabled:
By setting Enabled->False, the menu is disabled:
By default, the button function is sent to the kernel for evaluation:
By setting Evaluator, the button function is evaluated in the front end:
Change the field size:
Add margins within the menu:
Add margins outside the menu:
Specify the overall image size:
By default, action menu functions are evaluated on a preemptive link, which times out after five seconds:
Use Method to evaluate button functions on the main link, which never times out:
Choose between various graphics objects:
Control the range of a graphic:
ActionMenu has the same effect as a Button series:
New in 6 | Last modified in 8