hello Tom (mainly), I know that drag and drop is a huge issue for Mac users who can't have any tkdnd... so I just googled a bit to see if I could find some code that does this and see if we can use it as a separate extension... I found a lot of times, the same thing, when refering to tcl/tk... a procedure called tkOpenDocument... here's how it's best explained : [quote=http://www6.uniovi.es/tcl/faq/macFAQ.html] 2.3. How can I respond to having files dropped on my Wish Application? Create a tcl procedure called tkOpenDocument which takes the args keyword for its argument. When a file or files are dropped on your application, this procedure will be run, recieving a list of the files dropped on it in the args variable. So for instance:
proc tkOpenDocument {args} { foreach elem $args { puts {Ow! Quit It} } } [/quote] so.. how about you try it on Mac ? I don't think it would work on anything other than mac.. so try it on Mac, create a proc tkOpenDocument {args } { puts $args } and play with drag/dropping until you can clearly know what the $args contains... what if it's an http url, what if x, what if Y, is it a file://filename or is it just the filename.. does it work for any file, or just *.tcl files ? etc.. etc... then once you know how it works, you should find a little hack in Tk in order to find out WHERE the file was dropped... maybe have a FocusIn/FocusOut binding be added to toplevel windows in order to keep track of where the mouse pointer was when the drop was done... put all it into some API calls and we're good to go :) I hope it works! give me news about it. KKRT ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel