Drag and Drop to Item in List Field

Bill Vlahos bvlahos at mac.com
Tue Nov 16 18:39:30 EST 2010

The following script works very well with one problem. This script hilites the line correctly but just keeps hiliting lines as I move the mouse around and they stay hilited.

Make a scrolling field with some lines of text and put this handler in it:

on mouseWithin
   set the backgroundColor of the mouseLine to "yellow"
end mouseWithin

How do I have it only hilite one line at a time? 

Bill Vlahos

On Nov 12, 2010, at 11:12 PM, Bill Vlahos wrote:

> I have a list of categories and I want to drag and drop some text from a list field onto one of the categories in the target list field. The line of text should hilite on the drag (before the drop) so I know which item it is going to I should drag into.
> I can get most of the coding for drag and drop but there are some things I don't know.
> 1. How do I hilite the line of text in the list field the mouse is over?
> 2. How do I get the line of text in the target list field when the users drops the mouse?
> Bill Vlahos
> _________________
> InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list