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

Examples

open allclose all

Basic Examples  (2)

Select which pane to display:

Dynamically update the PaneSelector state:

Options  (9)

Alignment  (1)

Specify both vertical and horizontal alignment:

BaselinePosition  (1)

Align with surrounding text:

ContentPadding  (1)

By default, the height is padded to the full line height:

Set the height to use no padding:

FrameMargins  (1)

Add margins evenly around the pane selector:

Specify different margins on each side:

ImageMargins  (1)

Add margins evenly around the pane selector:

Specify different margins on each side:

ImageSize  (1)

Set the overall size:

TransitionDirection  (1)

Cause the transition effect between panes to move toward the top:

TransitionDuration  (1)

Control the duration in seconds of the transition effect:

TransitionEffect  (1)

By default, the transition is instantaneous:

Use a fading transition effect:

Properties & Relations  (1)

To compute the default ImageSizeAll setting, all expri are resolved:

ImageSizeAutomatic only resolves the visible expri, but the image size changes with the value:

An explicit ImageSize also only resolves the visible expri without changing size:

Wolfram Research (2007), PaneSelector, Wolfram Language function, https://reference.wolfram.com/language/ref/PaneSelector.html (updated 2012).

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

BibTeX

@misc{reference.wolfram_2024_paneselector, author="Wolfram Research", title="{PaneSelector}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/PaneSelector.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_paneselector, organization={Wolfram Research}, title={PaneSelector}, year={2012}, url={https://reference.wolfram.com/language/ref/PaneSelector.html}, note=[Accessed: 30-December-2024 ]}