Resize groups and controls within

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Resize groups and controls within

Post by genie » Thu Mar 28, 2013 4:23 am

Hello!

Is there an efficient way to resize a group and automatically scale the controls inside it?
or, do I really have to do the resizing on each controls individually?

I do:

Code: Select all

   set the width of group "NavBar" to tStackWidth
   set the height of group "NavBar" to 158*tHeightPerc
   set the topleft of group "NavBar" to 0,0
But the things inside NavBar do not resize... :( So, I have to:

Code: Select all

   set the width of graphic "background" of group "NavBar" to tStackWidth
   set the height of graphic "background" of group "NavBar" to 158*tHeightPerc
Thanks all!


Regards,
Genie

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Resize groups and controls within

Post by jmburnod » Thu Mar 28, 2013 12:57 pm

Hi genie,

There is a discuss about that with some exemple.
http://forums.runrev.com/phpBB2/viewtop ... MoveGroupH

I hope this help

Best regards

Jean-Marc
https://alternatic.ch

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Resize groups and controls within

Post by genie » Wed Apr 03, 2013 2:59 am

Thanks Jean-marc!

Post Reply