Dragging from a list field
J. Landman Gay
jacque at hyperactivesw.com
Mon Aug 29 00:56:21 EDT 2005
Trevor DeVore wrote:
> Why not something like this. It will allow for a selection and a
> drag/drop all at once. I haven't tested it but hopefully it would work.
Yes, works great! Perfect, in fact. Thanks so much, this is exactly what
I was looking for. After reading your bug report, I was going to try
heading in this direction but you have saved me some work.
Love this list. Thanks to all who replied.
> local sCurrentLine
>
> on mouseDown
> if hilitedLine of me <> sCurrentLine then
> --> DISPLAY CONTENT BASED ON SELECTION
>
> put hilitedLine of me into sCurrentLine
> end if
>
> --> CHECK FOR DRAG
> get milliseconds()
> repeat
> if milliseconds() - it > 200 then
> set dragData["text"] to the selectedText of me
> exit repeat
> end if
>
> if mouse(1) is "up" then exit repeat
> end repeat
>
> pass mouseDown
> end mouseDown
>
> Having the bug fixed where mouseDown code can kill selectionChanged
> would be nice.
>
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list