Constraining window dimensions proportionally while resizing
Devin Asay
devin_asay at byu.edu
Tue Sep 23 11:25:55 EDT 2014
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
More information about the use-livecode
mailing list