Q. how to drag-n-drop?
Jim Biancolo
webmaster at listology.com
Thu Oct 3 19:53:00 EDT 2002
Hi Alex,
I'm still new to RunRev, so I'm not sure if this is the best way to do it,
but this is what I did to allow drag-and-drop of images:
on mouseDown
repeat while the mouse is down
move the target to the mouseLoc
end repeat
end mouseDown
The thing I thought was nifty was that this code goes in the handler for
the group that contains the images, so all the images in the group are
draggable without needing their own mouseDown handlers.
One quibble with this approach would be that if you move the mouse fast the
object you're dragging tends to lag behind so you have to wait for it to
"catch up" as you hover over your intended destination.
Jim
At 06:09 PM 10/3/2002 -0600, you wrote:
>So far I haven't seen any examples of handling drag-n-drop in the
>tutorials or user contributions section. Is it hard to do in Rev? For
>instance drag-n-drop to reorder the contents of a ListField.
>
>Alex Rice, Software Developer
>Architectural Research Consultants, Inc.
>alrice at swcp.com
>alex_rice at arc.to
More information about the use-livecode
mailing list