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

PopupView

PopupView[{expr1, expr2, ...}]
represents an object which displays as a popup menu whose items are the expri.
PopupView[{expr1, expr2, ...}, i]
makes the i^(th) entry be the one currently chosen.
PopupView[{expr1, expr2, ...}, i, base]
displays as base if it is not being clicked.
  • PopupView[list, Dynamic[i]] takes the item chosen to be specified by the dynamically updated current value of i, with the value of i being reset if a different item is chosen.
  • The following options can be given:
BaselinePositionBaselinealignment relative to surrounding text
BaseStyle{}base style specifications for the displayed menu
EnabledAutomaticwhether the menu is enabled, or grayed out
FieldSize{{1.,50.},{1.,10.}}the size of the field for menu items
FrameMarginsAutomaticmargins inside the menu frame
ImageMargins0margins around the displayed menu
ImageSizeAllthe overall image size of the displayed menu
  • With the default option setting ImageSize->All, PopupView always leaves space for the largest of the expri to be displayed, so that its overall size does not change.
  • Item can be used to give style specifications that apply throughout a menu item.
  • PopupView by default displays the lbli in "PopupView" style, which typically uses the system menu font.
  • The settings for BaseStyle are appended to the default style typically given by the "PopupView" style in the current stylesheet.
New in 6