Scrolling an entire card, not just a group

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
AlexAdams
Posts: 38
Joined: Sat Jan 17, 2009 8:49 pm
Contact:

Scrolling an entire card, not just a group

Post by AlexAdams » Thu Jan 22, 2009 9:58 pm

I am an experienced developer who is new to Revolution. I am developing applications that will have cards full of vector graphics that need to be individually selectable and scriptable. Sometimes the cards containing these graphics will need to be resized and scrolled through to see everything. From what I've read about scroll bars, it seems that they work for a group of objects, but I need them to work for an entire card.

How can I accomplish that. It is odd to me that the stack and/or card properties do not themselves contain horizontal and vertical scroll options.

Thanks for your help.

Alex
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013

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

Post by Mark » Thu Jan 22, 2009 10:32 pm

Hi Alex,

Just group everything on the card, including existing groups, make it a scrolling group, set its rect to the rect of the card and set the lockLoc to true.

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