move under script

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

Post Reply
Christo777
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 13
Joined: Thu Nov 16, 2006 4:34 am

move under script

Post by Christo777 » Fri Jul 06, 2012 3:45 am

Hello,

is it possible for a script to know what happens when a field is moved by another script ?

ex.:

move fld MyField from pointa to pointb

putting a dragMove handler in the fields script doesn't seem to work

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

Re: move under script

Post by dunbarx » Fri Jul 06, 2012 5:16 am

Hi.

Not sure what you need here. Only one handler can run at a time, though one handler can call another.

So if you move an object under script control, where do you need to have this information registered elsewhere? In other words, if one handler is doing the moving, what other handler needs to know this, and to what effect? Can't a single handler do what you need?

Certainly the handler that does the moving can, at will, call another handler and pass any changes in the object's position as parameters to that handler

If I have this all wrong, write back.

Craig Newman

Post Reply