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:
-
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 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 allScope (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)
Applications (3)
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