Keeping a fixed aspect ratio while resizing a stack
Howard Bornstein
bornstein at designeq.com
Fri Nov 20 17:24:58 EST 2015
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
-----------------------
www.designeq.com
More information about the use-livecode
mailing list