Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how

Legacy Documentation

Mathematica 8 (2010)

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

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
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.
  • 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.
(1)
Select between graphics using a menu:
Include labels:
Select between graphics using a menu:
Out[1]=
Include labels:
Out[2]=
(7)
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:
(9)
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 :
(2)
Create a MenuView of series expansions:
Create a MenuView of some of the aerial images available from ExampleData :
(1)
MenuView is constructed with PopupMenu :
New in 6


ja zh

AltStyle によって変換されたページ (->オリジナル) /