[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif and CDE 2.1 Style Guide Reference
Slider (Control)
Reference
Description
A slider is a control that allows the user to choose a value from among a
range of numeric values at evenly spaced intervals. The slider consists of a
slider arm, slider track (also called a slider trough), and, optionally, a
pair of arrow buttons and annotations (such as tick marks) that indicate legal
values.
Figure 62. Sliders.
When to Use
RequiredUse a slider to allow a user to set a value from a range of numeric values
at evenly spaced intervals. The values may either be absolute, such as
temperature or size, or relative, such as a percentage.
RecommendedUse a slider to allow the user to see the current value relative to the
range of possible values.
Guidelines
RequiredUse a fixed-size slider arm whose center represents the value. Display the
current value as a label adjacent to the slider arm, and allow it to be used
as the source of a drag-and-drop transfer operation.
RequiredDo not use a slider if the user cannot change the value. Use a gauge
instead.
RecommendedUse tick marks to represent legal values or the units of measurement. If
there are a large number of legal values, use tick marks at regular intervals
of legal values and/or use both major and minor tick marks.
RecommendedWhere appropriate, allow the user to select or change the units of
measurement. For example, allow the user to change the scale from inches to
millimeters.
RecommendedProvide additional controls that can affect the slider setting. For
example, provide a Reset choice.
RecommendedIf adjacent pixels represent values that are more than one interval unit
apart, provide arrow buttons to allow the user to precisely set the value.
RecommendedIf adjacent pixels represent values that are many interval units apart and
the exact value to be set is important to a user, provide a separate
text-entry field in addition to the slider to allow the user to set the value
precisely.
RequiredWhen the user manipulates the slider arm with the mouse, either allow the
slider to stop only at positions that represent legal values or assign the
legal value to the slider nearest to its position.
RequiredWhen the slider has focus, allow directional keys to move the slider arm
one interval unit (not one pixel) in the corresponding direction. Allow
directional keys augmented by Ctrl to move the slider arm multiple units in
the indicated direction.
RequiredIf arrow push buttons are used, move the slider arm one interval unit (not
one pixel) in the corresponding direction when the user clicks on one.
RequiredThe mouse and keyboard behavior of a slider should be identical to that of
a scroll bar except that the interval between legal values is used instead of
a one-unit scrolling increment.
Essential Related Topics
For more information, see the Scroll Bar (Control) reference page.
Supplemental Related Topics
For more information, see the Gauge (Control) reference page.
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]