PaneSelector
PaneSelector[{val1expr1,val2expr2,…},x]
represents an object that displays as a pane containing the expri for which vali is equal to x.
PaneSelector[{val1expr1,val2expr2,…},Dynamic[x]]
takes the setting to be the dynamically updated current value of x
PaneSelector[{val1expr1,…},x,default]
displays default if x is none of the vali.
Details and Options
- If default is not given and x is not equal to any of the vali, then PaneSelector is displayed as a blank area.
- The vali can be strings, boxes, graphics or any other expressions.
- The following options can be given:
-
Alignment {Automatic,Automatic} how to align objects in the display area Background None background color to use BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the displayed object ContentPadding True whether to shrink the margins tightly around the contents FrameMargins Automatic margins to leave inside the overall frame ImageMargins 0 margins around the image of the displayed object ImageSize All the overall image size for the displayed object TransitionDirection Left the direction for sweeping or wiping transitions TransitionDuration 0.5 duration in seconds of the visual effect used for switching panes TransitionEffect None visual effect to use when switching panes - With the default option setting ImageSize->All, PaneSelector always leaves space for the largest of the expri to be displayed, so that its overall size does not change.
- With the option setting ImageSize->Automatic, PaneSelector leaves space only for the expri currently being displayed.
- The settings for BaseStyle are appended to the default style typically given by the "PaneSelector" style in the current stylesheet.
Examples
open allclose allBasic Examples (2)
Options (9)
ContentPadding (1)
FrameMargins (1)
ImageMargins (1)
Text
Wolfram Research (2007), PaneSelector, Wolfram Language function, https://reference.wolfram.com/language/ref/PaneSelector.html (updated 2012).
CMS
Wolfram Language. 2007. "PaneSelector." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/PaneSelector.html.
APA
Wolfram Language. (2007). PaneSelector. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PaneSelector.html