Page 1 of 1
Drag OUT of Revolution?
Posted: Wed Oct 14, 2009 1:34 am
by AlexAdams
I want to drag an icon from stacks in my app to someplace on in a file system directory, retreive the path of that location and use that information to copy a file there.
How can I get the destination outside Rev?
Thanks,
Posted: Wed Oct 14, 2009 6:24 am
by Janschenkel
I'm afraid you can't do it that way. The simplest solution is to write the file to the temp-directory and setting the dragData["files"] to the path of this temporary file. Of course, you should clean up those temporary files upon application exit.
HTH,
Jan Schenkel.
Posted: Wed Oct 14, 2009 9:15 am
by Klaus
Hi Alex,
yes Jan is true, but his workaround is great!
I also use this and found that this is fast enough for files up to about 5 MB!
Best
Klaus
Posted: Wed Oct 14, 2009 4:09 pm
by AlexAdams
Jan and Klaus,
I think I'll just ask the user where they want the file and put it there. I have the files stored in directories controlled by the app (later they will be in database BLOBs). They are renamed in a predictable manner when stored. I wanted to offer an option to the user to just drag and drop, but I guess not.
Thanks for your help,