Re: Constraining window dimensions proportionally while resizing

2014-09-23 Thread dunbarx
in size, this ratio will start off in the way you want it. Then simply adjust that ratio so that you are keeping the aspect constant. Craig -Original Message- From: Devin Asay To: How to use LiveCode Sent: Tue, Sep 23, 2014 11:26 am Subject: Constraining window dimensions proportio

Re: Constraining window dimensions proportionally while resizing

2014-09-23 Thread BNig
e was satisfactory, often giving erratic performance. > What is the best way to resize a stack window and constrain it > proportionally? > > Devin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Constraining-window-dimensions-proportionally-while-r

Re: Constraining window dimensions proportionally while resizing

2014-09-23 Thread Scott Rossi
Hi Devin: One way to do this is to use a dedicated object for the resizer and to calculate the new dimensions before resizing the stack. Execute this in your message box: go url "http://www.tactilemedia.com/download/constrained.livecode"; This demonstrates one way to do a 4 x 3 ratio stack. I'm

Re: Constraining window dimensions proportionally while resizing

2014-09-23 Thread Roger Eller
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 wrote: > Hi all, > > I j

Constraining window dimensions proportionally while resizing

2014-09-23 Thread Devin Asay
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 t