WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Legacy Documentation
Mathematica 6
(2007)
This is documentation for Mathematica 6, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 14.3)
Mathematica
>
Control Objects
>
Built-in
Mathematica
Symbol
Introduction to Dynamic
Generalized Input
Tutorials »
|
VerticalSlider
Manipulator
ProgressIndicator
Locator
Animator
Slider2D
ColorSlider
LocatorPane
ControlsRendering
See Also »
|
Control Objects
Creating Inspectors
Dynamic Interactivity Language
Dynamic Visualization
Interactive Manipulation
Options & Styling for Interactive Manipulation
New in 6.0: Dynamic Interactivity
More About »
Slider
Slider
[
x
]
represents a slider with setting
x
in the range 0 to 1.
Slider
[
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.
Slider
[
x
, {
x
min
,
x
max
}]
represents a slider with range
x
min
to
x
max
.
Slider
[
x
, {
x
min
,
x
max
,
dx
}]
represents a slider that jumps in steps
dx
.
Slider
[
x
, {{
e
1
,
e
2
,
...
}}]
represents a slider in which equally spaced intervals correspond to successive settings
e
i
.
Slider
[
x
, {{{
e
1
,
w
1
}, {
e
2
,
w
2
},
...
}}]
uses intervals of relative widths
w
i
for the
e
i
.
MORE INFORMATION
Slider
[
...
]
displays in a notebook as a horizontal slider that can be manipulated interactively.
Slider
[
Dynamic
[
x
]]
will reset the value of
x
when the slider is moved;
Slider
[
x
]
will not.
Slider
[
n
, {
n
min
,
n
max
,
dn
}]
jumps to integer positions if
n
min
and
dn
are integers.
»
Slider
[
x
, {
x
min
,
x
max
,
dx
}]
in general jumps to positions given by
Range
[
x
min
,
x
max
,
dx
]
.
»
Slider
[
x
]
represents a slider running from left to right.
Slider
[
x
, {
x
max
,
x
min
}]
with
x
max
>
x
min
represents a slider running from right to left.
»
If the value of the slider is outside the range given, it will be displayed at one of the ends.
Slider
[
x
, {0, 1,
dx
}]
displays at position
x
, even if this is not a multiple of
dx
.
In
Slider
[
x
, {{
e
1
,
e
2
,
...
}}]
, the
e
i
can be any expressions, not just numbers.
»
The following options can be given:
Appearance
Automatic
the overall appearance of the slider
AutoAction
False
whether to move the slider automatically when the mouse is over it
BaselinePosition
Automatic
alignment relative to surrounding text
BaseStyle
{}
base style specifications for the slider
ContinuousAction
True
whether to update continuously when the slider is moved
Enabled
Automatic
whether the slider is enabled, or grayed out
Exclusions
{}
specific values to be excluded
ImageMargins
0
margins around the image of the displayed slider
ImageSize
Automatic
the overall image size of the displayed slider
Possible settings for
Appearance
include
Tiny
,
Small
,
Medium
and
Large
, as well as typically some other settings such as
"UpArrow"
and
"DownArrow"
.
The settings for
BaseStyle
are appended to the default style typically given by the
"Slider"
style in the current stylesheet.
Slider
[]
is equivalent to
Slider
[0.5]
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
A slider set at
in the default range
to
:
In[1]:=
Out[1]=
A slider with its value updated dynamically:
In[1]:=
Out[1]=
A slider with integer values in the range
to
:
In[1]:=
Out[1]=
Scope
(5)
Options
(19)
Applications
(2)
Neat Examples
(1)
SEE ALSO
VerticalSlider
Manipulator
ProgressIndicator
Locator
Animator
Slider2D
ColorSlider
LocatorPane
ControlsRendering
TUTORIALS
Introduction to Dynamic
Generalized Input
MORE ABOUT
Control Objects
Creating Inspectors
Dynamic Interactivity Language
Dynamic Visualization
Interactive Manipulation
Options & Styling for Interactive Manipulation
New in 6.0: Dynamic Interactivity
New in 6