Keeping a fixed aspect ratio while resizing a stack

Howard Bornstein bornstein at
Fri Nov 20 21:56:29 EST 2015

Thank you Scott! Brilliant using mousemove for this. And what amazed me is
that when I included "resizestack" within your script, it called my
resizestack handler and let me do live resizing of the stack while keeping
the proper aspect ratio!

Wow, I'm impressed!

On Fri, Nov 20, 2015 at 2:56 PM, Scott Rossi <scott at> wrote:

> Try this (in your message box):
> go url ""
> Regards,
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> On 11/20/15, 2:24 PM, "use-livecode on behalf of Howard Bornstein"
> <use-livecode-bounces at on behalf of
> bornstein at> wrote:
> >I would like to let users of my stack resize it while keeping a fixed
> >aspect ratio of the stack. As far as I have been able to find, this is not
> >possible. There doesn't seem to be any way to constrain a stack while it
> >is
> >being resized. Putting statements in the resizestack handler to accomplish
> >this do bad things. I can change the size of the stack to reflect the
> >aspect ratio I want *after* the resize is done, but not during.
> >
> >I just wanted to see if anyone had found a way to do this. As an
> >additional
> >thought, I see that LC *does* allow this option if you hold down the
> >shift-key while resizing the stack (shift-drag also keeps the aspect ratio
> >of certain objects during a resize).
> >
> >Is this a feature of LC itself or is LC simply using an OS capability (I'm
> >running under OS X) to handle this?
> >
> >Would there be a way to tap into LC's ability to constrain the stack
> >resizing? The only other way I can think of is to somehow simulate the
> >pressing of the shift key while resizing is taking place, but I don't see
> >any way to do this either.
> >
> >Any insight would be appreciated.
> >
> >--
> >Regards,
> >
> >Howard Bornstein
> >-----------------------
> >
> >_______________________________________________
> >use-livecode mailing list
> >use-livecode at
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:


Howard Bornstein

More information about the use-livecode mailing list