Little Arrows question (scrollbar)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
proza
Posts: 14
Joined: Thu Jul 12, 2007 3:34 pm

Little Arrows question (scrollbar)

Post by proza » Tue Aug 07, 2007 4:31 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Aug 07, 2007 5:15 pm

Dear Proza,

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

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply