> i just implemented DND import (user drags file from eg the > desktop to my app and the file is being loaded). now i'd like > to have DND export too. like some box that one can drag from > to "somewhere on the fs" and which in turn receives that path > to "somewhere on the fs". is it possible and if so, how, and > is linux/win and mac supported?
What platforms are you targeting, and what version of fltk? FWIW, the DnD support in fltk needs to be a "lowest common denominator" solution so that it works OK across multiple platforms. What this means is that the drop payload is pretty much always treated as being just a text string, but the various types of meta-data that the different hosts systems support are not readily accessible. So you can fill that payload with the pathname of your file (as a text string) but you may not be able to set whatever attributes the host system provides to say "this is a reference to a file, not just a string of text" unless you use platform specific coding. Now, it may be that just passing the path and filename is adequate for your needs? I do not know. What are you trying to do? Have you looked at the howto-drag-and-drop.cxx example in the fltk-1.3 examples folder, it shows how to get started with this, though probably does not go far enough for your needs, I guess? SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

