Slider

Top  Previous  Next

The slider control is handle that rides on a track that you can drag to select a value from a range of values.

You can have either a horizontal or vertical slider.  This is automatically set based on the dimensions of the control.  Initially it will be a horizontal slider.  To create a vertical slider, resize the control so the width is less than the height.

Min: the minimum value (left or bottom) of the slider

Max: the maximum value (right or top) of the slider

Step size: as you drag the slider, it will be limited to values that are an even multiple of the step size.  Ideally, the step size should be divisible by the full range of the slider.

Change: script that runs when either handle is dragged or released.  Because it is called as the handle is dragged, it is called many times so you should make sure your script is short so it executes fast, otherwise the control will be sluggish.

Property names for script access (intermediate):

you can access the properties of this control as described in the script section.  Here are the properties for this control:

stepSize
value: the currently selected value
min
max