Page 1 of 1

Little Arrows question (scrollbar)

Posted: Tue Aug 07, 2007 4:31 pm
by proza
Anyone tried using the little arrows scrollbar? I have one in my stack, but when I tried to play with it, I found that it can never go to the max (end) value.

I created a little arrows and have the following script:

on mouseUp
put the thumbPos of me into field "value"
end mouseUp

I created a field named "value"

then I tried the little arrows, every time I click the up or down arrow, the value changed by 512 which is good. Then I continuely click the down arrow to see the max value, but it can only go to 57343 instead of 65535.

I tried to change the end value property of the little arrows to 100, and the on arrow click property to 10. Tested it, the value is always 0 no matter which arrow I click. Then I changed the end value property of the little arrows to 200 and tested it. The value changed:

0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

uh oh, it stops at 100.

Any one had this experience or can explain what I did wrong?

Thanks!
Proza

Posted: Tue Aug 07, 2007 5:15 pm
by Mark
Dear Proza,

The "max value" of a scrollbar is endValue - thumbSize.

Best,

Mark