lockLoc OR LockSize? (but not both)

zryip theSlug zryip.theslug at gmail.com
Wed Feb 3 16:31:05 CST 2010


2010/2/3  <DunbarX at aol.com>:
> Is this so that one doesn't inadvertantly grab a handle and change the
> size?
>
> You can set a custom property and trap the resizecontrol message, I guess:
>
> The "lockrect" property might be something like "82,23"
>
> on resizecontrol
>    set the width of me to item 1 of the lockRect of me
>    set the height of me to item 2 of the lockrect of me
> end resizecontrol
>
> It won't actually lock the rect when dragging a handle, but at least
> restores it when you stop.
>
> I tried this with mouseMove, and sometimes it worked. But now I always get
> recursion timeouts.

If needed you can also change the size of your object with arrowkeys.

http://www.aslugontheroad.co.cc/images/stories/Download/Tools/Resize%20controls%20with%20arrowkeys.rev.zip

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc



More information about the use-livecode mailing list