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.
Details 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:
- With the default option setting ImageSize->Automatic , FlipView leaves space only for the expri currently being displayed.
- With ImageSize->All , FlipView always leaves space for the largest of the expri 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 "FlipView" style in the current stylesheet.
Examples
open allclose allBasic Examples (1)
Flip between two expressions whenever one is clicked:
Scope (6)
FlipView Content (3)
FlipView Control (3)
Start by displaying the third slide:
The setting is based on position:
Connect FlipView to a slider:
Options (10)
Alignment (1)
Center the expression:
Align the expression to several positions:
AutoAction (1)
FlipView advances as the cursor moves over it:
Background (1)
Set background color:
BaselinePosition (1)
Align with the surrounding text:
Enabled (1)
FrameMargins (1)
Add margins within the view:
ImageMargins (1)
Add margins outside the view:
ImageSize (3)
Use ImageSize to control the width:
By setting the second element you can also control the height:
A fully custom image size:
Applications (3)
Select a function by its graph:
Flip through the first 25 1D cellular automata behaviors:
Flip through country flags:
Flip through country shapes:
Neat Examples (1)
Flip through different polyhedra:
Tech Notes
-
▪
- Views
Related Guides
Text
Wolfram Research (2007), FlipView, Wolfram Language function, https://reference.wolfram.com/language/ref/FlipView.html (updated 2008).
CMS
Wolfram Language. 2007. "FlipView." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/FlipView.html.
APA
Wolfram Language. (2007). FlipView. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FlipView.html
BibTeX
@misc{reference.wolfram_2025_flipview, author="Wolfram Research", title="{FlipView}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FlipView.html}", note=[Accessed: 13-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_flipview, organization={Wolfram Research}, title={FlipView}, year={2008}, url={https://reference.wolfram.com/language/ref/FlipView.html}, note=[Accessed: 13-April-2025 ]}