A slider object is a panel item with a handle that the user can drag to change the control's value. Each slider has a fixed minumum and maximum value.
Whenever the user changes the value of a slider, its callback procedure is invoked. A callback procedure is provided as an initialization argument when each slider is created.
If label is a string, it is used as the label for the slider. Otherwise, the slider does not display its label.
If an ampersand (``&'') occurs in label, it is specially parsed; under Windows and X, the character following an ampersand is underlined in the displayed control to indicate a keyboard mnemonic. (Under MacOS, mnemonic underlines are not shown.) The underlined mnemonic character must be a letter or a digit. The user can move the keyboard focus to the slider by typing the mnemonic when the control's top-level-window contains the keyboard focus. The user must also hold down the Meta or Alt key if the keyboard focus is currently in a control that handles normal alphanumeric input. The ampersand itself is removed from label before it is displayed for the control; a double-ampersand in label is converted to a single ampersand (with no mnemonic underlining). Mnemonic keyboard events are handled by on-traverse-char (but not under MacOS).
The min-value and max-value arguments specify the range of the slider, inclusive. The init-value argument optionally specifies the slider's initial value. If the sequence [min-value, initial-value, maximum-value] is not increasing, an exn:application:mismatch exception is raised.
The callback procedure is called (with the event type 'slider) when the user changes the slider's value.
The style argument must include either 'vertical for a vertical slider, or 'horizontal for a horizontal slider. If style includes 'plain, the slider does not display numbers for its range and current value to the user.