ZForms documentation/Slider

A slider element.

Usage
Configures the slider's member variables.

Parameters

 * low: The low value of the slider.
 * high: The high value of the slider.
 * step: The value this slider steps by. If 0, this slider will have as much precision as the resolution allows.
 * handleWidth: The width of this slider's handle. If set to anything non-positive, this will be auto-calculated when drawn. See the member variables description for details.
 * background: The texture used for the slider background. Can be NULL for no background.
 * handle: The texture used for the slider's handle when not clicked or hovered. Cannot be NULL.
 * handleHover: The texture used for the slider's handle when hovered. If passed as NULL, will be set to be equal to handle.
 * handleClick: The texture used for the slider's handle when clicked. If passed as NULL, will be set to be equal to handle.
 * cmdHandler: The handler the slider sends events to.
 * command: The command used for the handler.

Usage
Creates a slider element.

Parameters

 * pos: The element's XY coords.
 * size: The element's size.
 * low: The low value of the slider.
 * high: The high value of the slider.
 * step: The value this slider steps by. If 0, this slider will have as much precision as the resolution allows.
 * handleWidth: The width of this slider's handle. If set to anything non-positive, this will be auto-calculated when drawn. See the member variables description for details.
 * background: The texture used for the slider background. Can be NULL for no background.
 * handle: The texture used for the slider's handle when not clicked or hovered. Cannot be NULL.
 * handleHover: The texture used for the slider's handle when hovered. If passed as NULL, will be set to be equal to handle.
 * handleClick: The texture used for the slider's handle when clicked. If passed as NULL, will be set to be equal to handle.
 * cmdHandler: The handler the slider sends events to.
 * command: The command used for the handler.