Thanks for the hints!
As a summary for all others, having the same challenge, I’ll try to point out what the solution is:
- use a parent component, which must be public inherited from DragAndDropContainer
- use a child component, which must be public inherited from DragAndDropTarget and FileDragAndDropTarget and implement all necessary methods.
Possible pitfall: forget the keyword public, when declaring the base classes. I did it; it compiles, but it doesn’t work - grrr…
Possible improvement suggestion: wouldn’t it be possible to derive FileDragAndDropTarget from DragAndDropTarget inside the Juce framework? And of course TextDragAndDropTarget too. Multiple inheritance shouldn’t be a problem here - or? The documentation of FileDragAndDropTarget does nothing tell about the necessity of deriving from DragAndDropTarget. By doing this inside the framework, a developer must not think about it anymore.