Q. how to drag-n-drop?
kray at sonsothunder.com
Thu Oct 3 21:55:01 CDT 2002
grab the target
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "Jim Biancolo" <webmaster at listology.com>
To: <use-revolution at lists.runrev.com>
Sent: Thursday, October 03, 2002 7:45 PM
Subject: Re: Q. how to drag-n-drop?
> 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
> 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.
> 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
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode