Global Drag and Drop

I would like to implement a global drag/drop feature so that if a user drags and drop a file ANYWHERE in the UI, then I get a callback. How would I go about implementing such a thing?

I tried to implement my own custom view which implement the onDrag/Drop functions and overlay it in the front, make it transparent, but then no mouse events go to any view below… If I put it below everything then mouse events go to each individual views, but drag/drop is blocked on those views…

Thanks
Yan

Hi,
I’ve redesigned the drag and drop implementation in VSTGUI 4.7. If you use this or a newer version, you can simply set the drop target of your frame instance to a custom IDropTarget object. See lib/dragging.h for more information. For older versions this is not easy and may not be possible without altering the sources of the library.

Cheers,
Arne

I am using VST SDK 3.6.9 so I believe it comes with an earlier version of VSTGUI :frowning:. I guess I won’t be able to do it then

Thanks
Yan