Keeping a fixed aspect ratio while resizing a stack

Scott Rossi scott at tactilemedia.com
Fri Nov 20 17:56:21 EST 2015


Try this (in your message box):

go url "http://tactilemedia.com/download/constrained.livecode"


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 lists.runrev.com on behalf of
bornstein at designeq.com> 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
>-----------------------
>www.designeq.com
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list