Page 1 of 1

resizeStack

Posted: Wed Oct 08, 2014 8:01 pm
by tellboy
I think this is Mac only.

Can someone explain what is happening?

Starting window size width = 1080, height = 700.

Code: Select all

on resizeStack newWidth,newHeight,oldWidth,oldHeight
   put "newWidth = " & newWidth & "," & "newHeight = " & newHeight & "," & "oldWidth = " & oldWidth & "," & "oldHeight = " & oldHeight
end resizeStack
Zoom window (enlarge):
newWidth = 1680,newHeight = 1024,oldWidth = 1541,oldHeight = 954

Zoom window (contract):
newWidth = 1080,newHeight = 722,oldWidth = 1082,oldHeight = 723

Zoom window again (enlarge):
newWidth = 1680,newHeight = 1024,oldWidth = 1672,oldHeight = 1021

Zoom window again (contract):
newWidth = 1080,newHeight = 722,oldWidth = 1082,oldHeight = 723

Switch to another card, zoom window then switch back to original card
Zoom window (enlarge)
newWidth = 1680,newHeight = 1002,oldWidth = ,oldHeight = (where have the sizes gone)?

Now on the original card
Zoom window again (contract):
newWidth = 1080,newHeight = 722,oldWidth = 1123,oldHeight = 744

All the best

Terry

Re: resizeStack

Posted: Thu Oct 09, 2014 6:47 am
by [-hh]
Hi,

presumably the "liveresizing" of your stack (available only on MacOS X) is true.
Then oldWidth and oldHeight come from somewhere in between the smooth path that LC is using for your zoom (may also be an empty line, that starts a new subpath, like with polygons).

With "liveresizing" of your stack set to false the values will/should be identical on all platforms.