How to Set the Value of a Slider
Richard Gaskin
ambassador at fourthworld.com
Thu Apr 8 07:34:33 EDT 2004
David Burgun wrote:
> I have been messing around trying to find out how to set the Current
> Value of a Slider:
>
> I have a button that does this:
>
> on mouseDown
> set the thumbPosition of Slider X to 22
> end mouseDown
The object type is "scrollbar", and it comes in three styles:
scrollbar
scale
progress
This may seem a little odd, but if you think about it all three of those
have very parallel property needs, so maybe it's not crazy. :)
So use this instead:
set the thumbposition of scrollbar "x" to 22
...or with abbreviations:
set the thumbPos of sb "x" to 22
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list