How to click/drag an object
Scott Rossi
scott at tactilemedia.com
Mon May 12 19:49:22 EDT 2008
Recently, Judy Perry wrote:
> What I need is for a user to be able to click on an object (say, a
> locked field), move the mouse to a destination container (say, a
> graphic rectangle), with the locked field following the cursor along
> the way, and click to drop the locked field within the rectangle.
Can you use the grab command?
If not, you can write your own drag routine. This demo stack can help
(execute in your message box):
go url "http://www.tactilemedia.com/download/drag_sample.rev"
Essentially you use mouseMove to set the positions of stuff while the mouse
is down.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
More information about the use-livecode
mailing list