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         |     [EMAIL PROTECTED]
HyperActive Software           |     http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to