Rules for Tools/DrawSlider()
void DrawSlider(struct Windoow *window, struct Gadget *gadget,
long position, long width,
long (*routine)(), char vertical);
`struct Window *window'
Window for slider.
`struct Gadget *gadget'
Gadget that defines slider.
Starting button position.
Slider button width.
Routine to draw button.
TRUE if vertical slider.
Use `DrawSlider()' in conjunction with `DragSlider()' to create the
sliders used extensively by the Bars&Pipes Tool control windows.
Each slider corresponds to an Intuition Boolean gadget (with no
imagery.) To draw the slider, call `DrawSlider()', passing it the
window to draw in, the boolean gadget, so it knows the dimensions
of the slider, the position of the slider button scaled from 0 to
65535, the width of the button in pixels, a routine to draw the
data in the button, and a flag that is set if this is a vertical
You can use the same routine to draw the button as you do for
`DragSlider()'. See the `DragSlider()' description (see
DragSlider()) for an example. Because `DrawSlider()' expects a
position between 0 and 65535, you may need to convert it. In the
example used in DragSlider, this is a number from 0 to 99.
position = position * 655;