|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
FlipView
FlipView[{expr1, expr2}]
represents an object which flips between displaying
and
each time it is clicked.
FlipView[{expr1, expr2, ...}]
cyclically flips through successive
.
FlipView[{expr1, expr2, ...}, i]
makes
be the object currently displayed.
Details and OptionsDetails and Options
- Clicking anywhere inside a FlipView advances to the next object.
- Shift-clicking goes to the previous object.
- FlipView[list, Dynamic[i]] takes the displayed object to be specified by the dynamically updated current value of i, with the value of i being reset if a new object is displayed.
- The following options can be given:
-
Alignment Automatic 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 FlipView Enabled Automatic whether controls are enabled FrameMargins Automatic margins inside the overall frame ImageMargins 0 margins around the display area ImageSize Automatic the overall image size for the display area - With the default option setting ImageSize->Automatic, FlipView leaves space only for the
currently being displayed. - With ImageSize->All, FlipView always leaves space for the largest of the
to be displayed, so that its overall size does not change. - Controls such as Button and Slider are not clickable inside FlipView.
- EventHandler intercepts mouse clicks, but passes them through to FlipView if the setting PassEventsDown->True is given.
- The settings for BaseStyle are appended to the default style typically given by the
style in the current stylesheet.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Flip between two expressions whenever one is clicked:
| In[1]:= |
| Out[1]= |
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
