Simple Scroll Example

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
pspringer57
Posts: 9
Joined: Mon Oct 20, 2008 5:51 pm

Simple Scroll Example

Post by pspringer57 » Tue Nov 18, 2008 10:44 pm

I am having trouble finding a simple example of scrolling a group of objects, either with the "built-in" group scroll bar, or a separate scroll bar object. I have searched the documentation and the forum. The documentation is not not helping me much, and the forum posts address more esoteric scrolling problems. Can someone point out an example or description of basic scrolling?

Thanks,
-Paul

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Tue Nov 18, 2008 11:22 pm

What exactly would you like to know?

Cheers,

Malte

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

Post by Mark » Tue Nov 18, 2008 11:37 pm

Hi Paul,

Create a few objects and group them. Set the rect of the group to the rect of the card and set the lockLoc of the group to true. Set the vScrollbar and hScrollbar of the group to true too.

Now you can select the objects and move them downwards, off the card. The group will get active scrollbars. You can put more objects above the old objects and when you're done you can scroll the objects.

Simple enough?

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

pspringer57
Posts: 9
Joined: Mon Oct 20, 2008 5:51 pm

Post by pspringer57 » Wed Nov 19, 2008 5:48 pm

Thanks very much Mark, that did it for me.

-Paul

Post Reply