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
Simple Scroll Example
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 9
- Joined: Mon Oct 20, 2008 5:51 pm