GMSymbolSlider is an easy to use customisable slider.
It inherits from the GMZZSlider class, and is only responsible for graphical specifications. See GMZZSlider for non-graphical properties settings.
Its handle can either be a circle, a square or a diamond.
By default, the slider will display its value, truncated to a certain number.
In some certain cases, the built-in slider scales won't suit your usage, and you will need to post-process the slider value within its action
function. In this case, you should also modify the displayFunction
of the slider so that the displayed value is updated accordingly :
Creates a new instance of GMSymbolSlider.
By default, its graphical properties are defined by its associated GMStyle. This means that creating sliders with different colors implies creating multiples GMStyle. The font color of the displayed value corresponds to the valueFontColor
property.
a GMSymbolSlider instance.
Sets or gets the handle type. Can be either \circle
, \square
or \diamond
.
Sets or gets the size of the handle relative to the widget size.
aNumber |
A Float that should be between 0 and 1. |
Sets or gets the minimum size of the handle, in pixels.
Sets or gets the maximum size of the handle, in pixels.
Sets or gets the line drawing policy. \none
will disable it, \full
will draw a line along the full selected axis, \value
will draw a line between min
and the handle.
Deprecated. Use displayLine
instead.
Sets or gets wether the value should be displayed.
Sets or gets wether the value should be centered on the widget.
Sets or gets the number the displayed value is truncated to.
Sets or gets the Function that will be used to adapt the displayed value if needed (see above). Set to nil
to disable.
Sets or gets the size of the displayed value font relative to the widget size.
aFloat |
A Float that should be between 0 and 1. |
Sets or gets wether helpers should be displayed.
Deprecated. Use displayHelpers instead.
Sets or gets the size of the displayed helpers relative to the widget size. The value will be clipped if this would cause the dots to overlap.
aNumber |
A Float that should be between 0 and 1. |
Here's an example of some different graphical configurations :