|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
PopupMenu
PopupMenu[x, {val1, val2, ...}]
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.
PopupMenu[x, {val1->lbl1, val2->lbl2, ...}]
represents a popup menu in which possible value
is indicated by
.
PopupMenu[x, {val1->lbl1, ...}, dlbl]
displays the menu item as dlbl if x is none of the
.
PopupMenu[x, {...}, dlbl, base]
displays as base when it is not being clicked.
Details and OptionsDetails and Options
- PopupMenu[x, {val1, val2, ...}] 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[x, list], Delimiter can appear as an element of list, specifying a horizontal delimiter in the displayed popup menu.
- The following options can be given:
-
Appearance Automatic the overall appearance of the menu BaselinePosition Automatic alignment relative to surrounding text 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 FieldSize {{1.,50.},{1.,10.}} the size of the field for menu items FrameMargins Automatic margins to leave inside the menu frame ImageMargins 0 margins around the displayed menu ImageSize All the overall image size of the displayed menu MenuStyle {} style specifications for menu items - Appearance->{"Clicked"->app1, "Unclicked"->app2} 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.
New in 6 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
