|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
MenuView
MenuView[{lbl1->expr1, lbl2->expr2, ...}]
represents an object in which selecting the menu item with label
displays
.
MenuView[{lbl1->expr1, lbl2->expr2, ...}, i]
makes the i
item be the one currently selected.
MenuView[{{v1, lbl1->expr1}, {v2, lbl2->expr2}, ...}, v]
associates values
with successive menu items, and makes the item with value v be the one currently selected.
MenuView[{expr1, expr2, ...}]
takes the menu items' labels to be successive integers.
Details and OptionsDetails and Options
- MenuView[list, Dynamic[s]] takes the selected menu item to be specified by the dynamically updated current value of s, with the value of s being reset if a different menu item is selected.
- The following options can be given:
-
Alignment {Left,Top} how to align objects in the display area Background None background color to use BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the menu ControlPlacement {Top,Left} where to place the menu Deployed False whether the contents should be uneditable Enabled Automatic whether the menu is enabled or grayed out FrameMargins Automatic margins inside the overall frame ImageMargins Automatic margins around the display area ImageSize All the overall image size for the display area LabelStyle {} style specifications for the menu items - With the default option setting ImageSize->All, MenuView always leaves space for the largest of the
to be displayed, so that its overall size does not change. - With ImageSize->Automatic, MenuView leaves space only for the
currently being displayed. - If any of the
are Null, the corresponding menu items are left blank. - Item can be used to give style specifications that apply throughout a menu item.
- MenuView by default displays the
in
style, which typically uses the system menu font. - The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the
and
styles in the current stylesheet.
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


