synchronous resizing of stacks

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10322
Joined: Wed May 06, 2009 2:28 pm

Re: synchronous resizing of stacks

Post by dunbarx » Fri Nov 18, 2016 9:32 pm

Ollie.

All correct. "reSizeStack" is sent continuously, sort of like "mouseMove", as one drags. In that way it is both very powerful and very annoying. What is missing is a hard lock on the parameters "oldWidth" and "oldHeight". These change, or rather are updated, at each message event, which means really often. One can save the "old" data in a custom property with (pseudo):

Code: Select all

   ...
   set the lastInfo of this stack to the width of this stack && the height of this stack && the loc of this stack
end reSizeStack
But then how do you use that information in the ongoing, updating incessant string of reSizeStack messages? You cannot keep loading that data, because the continually updated parameters are required to make the process work at all.

Hmmm. Sounds like the margin value thing I mentioned has to be the way forward. This would be a useful tool for general use. Sounds like fun.

Craig

Post Reply