represents an object in which selecting the menu item with label lbli displays expri.


makes the i^(th) item be the one currently selected.


associates values vi with successive menu items, and makes the item with value v be the one currently selected.


takes the menu items' labels to be successive integers.

Details 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
    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 expri to be displayed, so that its overall size does not change.
  • With ImageSize->Automatic, MenuView leaves space only for the expri currently being displayed.
  • If any of the lbli 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 lbli in "MenuView" style, which typically uses the system menu font.
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the "MenuView" and "MenuViewLabel" styles in the current stylesheet.


open all close all

Basic Examples  (1)

Select between graphics using a menu:

Click for copyable input

Include labels:

Click for copyable input

Scope  (7)

Options  (9)

Applications  (2)

Properties & Relations  (1)

Introduced in 2007