Scroll Bar

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
Bruce Underwood
Posts: 8
Joined: Thu Oct 23, 2008 12:10 pm
Contact:

Scroll Bar

Post by Bruce Underwood » Mon Nov 10, 2008 11:48 am

I have a very long stack containing a large number of short horizontal fields. I placed a vertical scrollbar on the right side of the stack, but I can't get it to scroll the page. What I want is a scroll bar that works just like the ones in the Revolution Dictionary.
The Revolution User's Guide has no information on how to write script to get the scroll bar to function as I want it to.

I will appreciate any help I can get.

Bruce Underwood
bruceu@embarqmail.com
Bruce Underwood
1457 Nutbush Road
Victoria, VA 23974
bruceu@embarqmail.com
Telephone: (434) 696-5539

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

Post by Mark » Mon Nov 10, 2008 1:14 pm

Hi Bruce,

Group all fields. Set the lockLoc, vScrollbar and hScrollbar of the new group to true. Set the rect of your group to the rect of your card. Make sure that the rect of the group is updated whenever you change the size of your stack window. Now you should be able to scroll the fields.

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