I wanted to drag a file (say abc.txt) to my xojo program and let it to write out the path of the dropped file, returning something like C:\\mydata\abc.txt.
How do I go about doing it? Do I need to enable some properties?
I can't find anything useful from manual or forum.
First, add a File Type Set to your project. It'll be named FileTypes1 initially, but better rename it to "DropTypes". Add file types to it that you like to accept. To accept any file, click on the center of these buttons in the IDE's File Type Set editor:
Choose special/any.
Next, add this line to the
Openevent of the control or window that should allow drops:Then add this code to the control's or window's
DropObjectevent: