Dragging from list field

Jan Schenkel janschenkel at yahoo.com
Mon Feb 7 16:15:09 EST 2005


--- Scott Rossi <scott at tactilemedia.com> wrote:
> 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
> 

And while I'm adding shameless plugs to the list : you
can take apart the script of an old example stack of
mine which has drag-and-drop between two list fields.
<http://www.geocities.com/janschenkel/downloads/dragdroplist.zip>

Best regards,

Jan Schenkel.

=====
Quartam - Tools for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the use-livecode mailing list