Discrete scrollbar settings
Fran=?ISO-8859-1?B?5w==?=ois Cuneo
francois.cuneo at cuk.ch
Mon Feb 18 09:41:01 EST 2002
>>
>> on scrollbarDrag
>> set the thumbPos of me to (the thumbpos of me)
>> end scrollbarDrag
>>
>> This sort of "snaps" to the proper thumbpositions, but it flickers as it's
>> doing so. I'll keep hunting for a better solution, but it would be great if
>> Rev had a "snapToPage" property (or equivalent) that would take the
>> flickering away.
>
>
> As W. C. Fields would say: "Pardon my redundancy."
>
> Much simpler:
>
> local temp
>
> on scrollbarDrag
> set startValue of me to 1
> set endvalue of me to 3
> put the thumbposition of me into temp
> put round(temp) into temp
> end scrollbarDrag
>
> on mouseUp
> set the thumbposition of me to temp
> end mouseUp
Thank you!
Fine!
Friendly
François
--------------------------------------------------------------------------
François Cuneo
Au Champ du Pré
1353 Bofflens
e-mail: mailto:francois.cuneo at cuk.ch
Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles
Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05
More information about the use-livecode
mailing list