Constraining window dimensions proportionally while resizing

Roger Eller roger.e.eller at sealedair.com
Tue Sep 23 12:34:53 EDT 2014


I've never seen the window constrained while resizing, but you should be
able to look at the larger dimension after a resizeStack, and snap the
other dimension to a calculated size.  Pretty quick, but not in realtime.

~Roger


On Tue, Sep 23, 2014 at 11:25 AM, Devin Asay <devin_asay at byu.edu> wrote:

> Hi all,
>
> I just posted this question on stackoverflow. But I thought I’d ask it
> here where I think I’ll get some great answers, and hopefully a good answer
> can get posted back to stackoverflow to make the answer more widely
> accessible to web searches.
>
> In a LiveCode project I want the end user to be able to resize a window,
> but I want the window proportions -- the ratio of the width to the height
> -- to remain the same during the resize operation. I have tried various
> approaches, but none was satisfactory, often giving erratic performance.
> What is the best way to resize a stack window and constrain it
> proportionally?
>
> I feel like I may be missing something really obvious. It wouldn’t be the
> first time.
>
> Thanks,
>
> Devin
>
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
>
> _______________________________________________
> 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