Hi Everyone,
Can you show me the needed coding I need to use to dynamically change the size of a group to match the same size as the stack?
Thanks.
Truly,
Emad
Resizing group to stack size
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Resizing group to stack size
Hi Emad,
you could add a "resizestack" handler to the card or stack script like this:
Best
Klaus
you could add a "resizestack" handler to the card or stack script like this:
Code: Select all
on resizestack
set the rect of grp "your group here..." to the rect of this card
## I leave the correct object resizing and layout of the objects in the group up to you,
## if that is what you are looking for ;-)
## more resize stuff here, if neccessary...
end resizestack
Klaus
Re: Resizing group to stack size
Hi Klaus,
I'm actually looking to make sure the image on the group will always scale to the stack for all the possible screen sizes such as iPhone, iPad, etc.
Can you show me some coding that would do that?
Thanks.
I'm actually looking to make sure the image on the group will always scale to the stack for all the possible screen sizes such as iPhone, iPad, etc.
Can you show me some coding that would do that?
Thanks.
Re: Resizing group to stack size
Hi rleiman,
Look up screenRect in the dictionary.
Simon
Look up screenRect in the dictionary.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!