Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Viewers and Annotation >
Mathematica > Dynamic Interactivity > Custom Interface Construction > Standalone Interfaces > Viewers and Annotation >

FlipView

FlipView[{expr1, expr2}]
represents an object which flips between displaying expr1 and expr2 each time it is clicked.
FlipView[{expr1, expr2, ...}]
cyclically flips through successive expri.
FlipView[{expr1, expr2, ...}, i]
makes expri be the object currently displayed.
  • 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:
AlignmentAutomatichow 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 FlipView
EnabledAutomaticwhether controls are enabled
FrameMarginsAutomaticmargins inside the overall frame
ImageMargins0margins around the display area
ImageSizeAutomaticthe overall image size for the display area
  • With ImageSize->All, FlipView always leaves space for the largest of the expri to be displayed, so that its overall size does not change.
  • The settings for BaseStyle are appended to the default style typically given by the "FlipView" style in the current stylesheet.
Flip between two expressions whenever one is clicked:
Flip between two expressions whenever one is clicked:
In[1]:=
Click for copyable input
Out[1]=
Flip between several expressions:
Flip between graphics or any other expressions:
By default, FlipView resizes for each pane:
With ImageSize->All, FlipView leaves enough space to display without ever resizing:
Start by displaying the third slide:
The setting is based on position:
Connect FlipView to a slider:
Center the expression:
Align the expression to several positions:
FlipView advances as the cursor moves over it:
Set background color:
Align with the surrounding text:
By default FlipView is enabled:
By setting EnabledFalse, FlipView is disabled but visible in its current state:
Add margins within the view:
Add margins outside the view:
Use ImageSize to control the width:
By setting the second element you can also control the height:
A fully custom image size:
Select a function by its graph:
Flip through the first 25 1D cellular automata behaviors:
Flip through country flags:
Flip through country shapes:
FlipView is a special form of Toggler:
Flip through different polyhedra:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team