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


Updated In 8 Graphic
represents a popup menu with setting x and possible values .
PopupMenu[Dynamic[x], {val1, ...}]
takes the setting to be the dynamically updated current value of x, with the value of x being reset every time an item is selected from the menu.
represents a popup menu in which possible value is indicated by .
displays the menu item as dlbl if x is none of the .
displays as base when it is not being clicked.
  • PopupMenu displays with the as successive entries in the menu.
  • The and can be strings, boxes, graphics or any other expressions, including dynamic expressions.
  • In PopupMenu, Delimiter can appear as an element of list, specifying a horizontal delimiter in the displayed popup menu.
  • The following options can be given:
AppearanceAutomaticthe overall appearance of the menu
BaselinePositionAutomaticalignment relative to surrounding text
BaseStyle{}base style specifications for the menu
ContentPaddingTruewhether to shrink the margins tightly around the contents
EnabledAutomaticwhether the menu is enabled, or grayed out
FieldSize{{1.,50.},{1.,10.}}the size of the field for menu items
FrameMarginsAutomaticmargins to leave inside the menu frame
ImageMargins0margins around the displayed menu
ImageSizeAllthe overall image size of the displayed menu
MenuStyle{}style specifications for menu items
  • Appearance allows different appearances to be specified for the clicked and unclicked states of the popup menu.
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Select values from a popup menu:
Connect PopupMenu to a dynamic state:
Select values from a popup menu:
Click for copyable input
Connect PopupMenu to a dynamic state:
Click for copyable input
Use graphics as content in PopupMenu:
Use any expression as a label:
Use Null to indicate a blank label:
By default, a PopupMenu leaves enough space to display without ever resizing:
With ImageSize->Automatic, PopupMenu resizes for each pane:
Start with value selected:
The setting is based on value, regardless of labels:
Connect a PopupMenu to a slider:
Specify an alignment within the menu:
By default, PopupMenu does not open until you click it:
By setting AutoAction, PopupMenu opens as the mouse moves over it:
Align with surrounding text:
By default, PopupMenu is enabled:
By setting Enabled->False, PopupMenu is disabled, but visible in its current state:
Use a predefined size:
Specify width and height:
Allow a width and height between set values:
Add margins within the view:
Add margins outside the view:
Control the overall height and width:
Dynamically update the base view:
In PopupMenu, the setting is associated with the value of the element in the list:
In PopupView, the setting is associated with the position of the element in the list:
New in 6 | Last modified in 8