Renamed dragdrop::prepare_data to prepare_drop_data so that it states that it's for sending not receiving data.
Made dragdrop only work for external transfers (see note-1), simple_dragdrop should be used for internal transfers.
Added support to show file icons when dragdrop receives files (e.g. from explorer).
Stopped dragdrop and simple_dragdrop being created on the same form (see note-2)
These changes are for windows only.
I did try to do it for linux as well, but it wasn't clear where to start, and the documentation for xdnd was lacking.
note-1:
This removes an error caused by itself.
Although sometimes when using visual studio 2019 with the debugger attached only, the program may either freeze or throw an error in native code.
note-2:
This throws an error instead of allowing both to succeed, but with only one actually working. So it is more clear to the user.
dragdrop
to receive files.dragdrop::prepare_data
toprepare_drop_data
so that it states that it's for sending not receiving data.dragdrop
only work for external transfers (see note-1),simple_dragdrop
should be used for internal transfers.dragdrop
receives files (e.g. from explorer).dragdrop
andsimple_dragdrop
being created on the sameform
(see note-2)These changes are for windows only. I did try to do it for linux as well, but it wasn't clear where to start, and the documentation for xdnd was lacking.
note-1: This removes an error caused by itself. Although sometimes when using visual studio 2019 with the debugger attached only, the program may either freeze or throw an error in native code.
note-2: This throws an error instead of allowing both to succeed, but with only one actually working. So it is more clear to the user.