Im creating an application that uses TreeView and TreeViewItem classes to represent a folder structure with files in it. I have implemented drag and drop behaviour by overriding getDragSourceDescription(), and itemDropped(). I’m using createItemComponent() to supply custom components to the treeview.
My question is: Is it possible to change the appearance of the items when they are being dragged over? Because TreeViewItem does not have virtual itemDragEnter() and itemDragExit() there does not seem to be a straighforward way. I’ve looked at Juce’s InsertPointHighlight and TargetGroupHighlight classes inside TreeView but they don’t allow for any customization either.
Treeview is not supposed to be inherited, so there is no chance of adding code to the itemDragEnter() and itemDragExit() there either. I have no idea how to approach this problem.
Thanks for your help.