Scrollbar (slider) mystery.
Ken Ray
kray at sonsothunder.com
Sat Jun 18 01:13:27 EDT 2005
> Here's some simple code:
>
>> put the thumbPos of scrollbar "Slider1" into fR
>> put fR into msg
>
> The slider has startvalue 1, endvalue 100, and thumbPos 75 (all set in
> the property inspector).
>
> This prints out "75" just as I expected.
> But fR doesn't *really* have the value 75, as I found out after
> literally hours of debugging :-(
>
> If I change the code to
>
>> put the thumbPos of scrollbar "Slider1" into fR
>> put fR && fr+1 into msg
>
> it prints out
> 75 75.856855
Alex, I just did your example, and I got:
75 76
That was just dragging out a slider, setting the values as you identified,
and typing in the message box. I tested in 2.5.1 - what version of Rev are
you using? And if you're using 2.6, can you try in 2.5.1 and see if you get
a different result?
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list