Resizing Graphics

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
danrg7
Posts: 10
Joined: Fri May 25, 2007 7:42 pm

Resizing Graphics

Post by danrg7 » Tue May 29, 2007 4:05 pm

I have a set of graphics made using the drawing tools. The graphic itself is just the group of these simple drawings. My problem is that by resizing the group, the objects in the gorup don't resize. Is there an easy way to have all the objects in the group scale to the way the group resizes, or do I have to specifically scale every object in the group when it is resized?
Dan

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Resizing Graphics

Post by BvG » Wed May 30, 2007 4:26 pm

danrg7 wrote:...do I have to specifically scale every object in the group when it is resized?
Yes
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

danrg7
Posts: 10
Joined: Fri May 25, 2007 7:42 pm

Re: Resizing Graphics

Post by danrg7 » Wed May 30, 2007 9:10 pm

BvG wrote:
danrg7 wrote:...do I have to specifically scale every object in the group when it is resized?
Yes
Has anybody already created a script for that?
Dan

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

Post by Mark » Wed May 30, 2007 11:03 pm

Hi danrg,

you might try using the Geometry Manager, but I'd write my own script.

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