[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

The slider is used to pick a specific value within a set.  Usually the set
is ordered, but this is not required.  An example of this would be
choosing the volume of a sound, the speed of an animation or the
brightness of a color.  Sliders can move on either the vertical or
horizontal axis.  A slider that moves on both the horizontal and the
vertical axis could be created to choose two values at once.

An example slider which picks an integer between one and ten, should have
the following attributes:

  * It should slide on only one axis.

  * Values should be evenly distributed over the length of the slider.

  * Clicking in the container to either side of the knob should increase
    (or decrease) the value by one unit.

Stylistically, sliding the knob to the right or top should increase the
value, while sliding it to the left or down should decrease the value.
Note that the orientation of proportional gadgets is correct for scrollers
(where the minimum value is topmost or leftmost), but is vertically
inverted for sliders.  Thus, well-behaved vertical sliders need to invert
their value somewhere in the calculations (or else the maximum will end up
at the bottom).