Dragging from list field

Scott Rossi scott at tactilemedia.com
Sat Jan 29 20:22:51 EST 2005


Recently, Mark Swindell wrote:

> Can I drag and drop items selected in an unlocked list field into
> another field?  How can I accomplish this?

If I understand your need, the answer is sure.  In its most basic form, you
can add the following to the script of your destination field:

on mouseEnter
  set the acceptDrop to true
end mouseEnter

on dragDrop
  put the dragData into me
end dragDrop


> Also, why does drag and drop in Rev not look like any other text drag
> and drop on OS X... text cursor turns to arrow, hilighted text is
> picked up and visibly carried to next window, field, etc.?  I find that
> unless I know ahead of time that the text is going to come along for
> the ride, I'd never intuit it from the screen behavior of the cursor
> and selected text.

The above is exactly the reason why GetInLine was developed.  Execute the
following in your message box:

  go url "http://www.tactilemedia.com/download/getinline.rev"

This is not a complete solution to your problem, as it is only for list
reordering at the moment, but it could be adapted to suit your needs.

Of course you can always make a donation to further its development. :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, Development & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list