just spend quite a while figuring out how to make a file browser drag and drop capable.
a forum search just brought up the idea of using my own TreeViewItemComponent, which doesn’t work without much coding work
in the end i figured out you just have to add one line in the FileBrowserComponent constructor.
... FileTreeComponent* const tree = new FileTreeComponent (*fileList); tree->setDragAndDropDescription(T("MyName")); //<------ enables drag and drop ...
would be great to have access to this either through a constructor parameter or a function call, so i would’nt have to use my own component just for this one line.