Raspberry Pi stacks collection #97 = rangeSlider.livecode
The stack is a builder utility for rangeSlider controls.A rangeSlider is a self-contained group that represents a horizontal or vertical Slider that has one, two or three knobs:
The usual slider knob and/or knobs for the lower and upper bounds of a range.
Say you have a slider base that represents the values 0-100.
You define the range 20-85 out of that by setting the lower thumb to 20 and the upper thumb to 85.
Optionally you can now set a slider thumb selecting values within that range 20-85.
(Or you use, like with 'usual' sliders, only a slider thumb, no lower or upper thumb, and select from the base range 0-100).
The stack shows as examples 15 of the possible variations of rangeSlider and lets you variate all these:
= Choose one slider thumb, two range thumbs or both.
= Choose the orientation (vertical/horzontal) of the rangeSlider.
= Choose the baseColor, the thumb colors and the text color.
= Choose which values to display as text (incl. percentages).
You can get and set the sliderValues by script (see the documentation/help in the attached "builder" stack).
The stack contains a button that shows the few lines needed to call in LC 6/7/8/9 the property inspector for an object by script and how to set its topleft.
- Use LC 6.0.5/7.0.4 on Raspi.
- Use any stable version of LC 6/7/8/9 on Mac/Win/linux.
p.s. I'll make a corresponding LC 8/9 widget
as soon as the widget format is fixed, so that that we need to build only ONE version for LC 8/9 widgets.
Plagiarism is basic to all culture.
(Pete Seeger in a concert, he didn't name an author ...)