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

MenuView

MenuView
represents an object in which selecting the menu item with label displays .
MenuView
makes the i^(th) item be the one currently selected.
MenuView
associates values with successive menu items, and makes the item with value v be the one currently selected.
MenuView
takes the menu items' labels to be successive integers.
  • 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
BackgroundNonebackground color to use
BaselinePositionAutomatichow to align with a surrounding text baseline
BaseStyle{}base style specifications for the menu
ControlPlacement{Top,Left}where to place the menu
DeployedFalsewhether the contents should be uneditable
EnabledAutomaticwhether the menu is enabled or grayed out
FrameMarginsAutomaticmargins inside the overall frame
ImageMarginsAutomaticmargins around the display area
ImageSizeAllthe 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.
  • 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.
Select between graphics using a menu:
Include labels:
Select between graphics using a menu:
In[1]:=
Click for copyable input
Out[1]=
Include labels:
In[2]:=
Click for copyable input
Out[2]=
Use graphics as content in MenuView:
MenuView can contain any expression, including Manipulate:
MenuView can be nested:
By default, MenuView leaves enough space to display without ever resizing:
With ImageSize->Automatic, MenuView resizes for each pane:
Start by displaying the third slide:
The setting is based on position:
Connect MenuView to a slider:
Choose alignments within the view:
Change the background color:
Align with surrounding text:
Alter the control placement:
By setting Deployed, objects in the display of MenuView may not be selected:
By default, MenuView is enabled:
By setting Enabled->False, MenuView is disabled, but visible in its current state:
Add margins within the view:
Add margins outside the view:
Control the overall size of MenuView:
Create a MenuView of series expansions:
Create a MenuView of some of the aerial images available from ExampleData:
New in 6