SliderBox

SliderBox[x]

is a low-level box construct that represents a slider with setting x in the range 0 to 1.

SliderBox[Dynamic[x]]

takes the setting to be the dynamically updated current value of x, with the value of x being reset if the slider is moved.

SliderBox[x,{xmin,xmax}]

represents a slider with range xmin to xmax.

SliderBox[x,{xmin,xmax,dx}]

represents a slider that jumps in steps dx.

SliderBox[x,{{e1,e2,}}]

represents a slider in which equally spaced intervals correspond to successive settings ei.

SliderBox[x,{{{e1,w1},{e2,w2},}}]

uses intervals of relative widths wi for the ei.

Details and Options

Examples

open allclose all

Basic Examples  (3)

A slider with its value updated dynamically:

A slider with integer values in the range to :

Scope  (4)

Use the range to , increasing when going from left to right:

A slider with range to , increasing when going from right to left:

Use only integer variable values:

Use a list of possible values:

Change the relative width corresponding to each possible value:

Properties & Relations  (3)

SliderBox is used in the typesetting of Slider expressions:

SliderBox with a custom Appearance option is used in the typesetting of VerticalSlider:

Although SliderBox is limited to machine numbers, Slider can do more:

Slider does this by mapping the range into one that SliderBox can interpret:

Slider also maps continuous ranges of symbolic values:

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

Text

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

CMS

Wolfram Language. 2007. "SliderBox." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/SliderBox.html.

APA

Wolfram Language. (2007). SliderBox. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SliderBox.html

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_sliderbox, organization={Wolfram Research}, title={SliderBox}, year={2008}, url={https://reference.wolfram.com/language/ref/SliderBox.html}, note=[Accessed: 03-December-2024 ]}