TreeviewItem Custom Component loss of functionality

Hey guys,

So I have got a Treeview within my project which has worked well when creating the Treeview Items with paintItem().

I’m now in a position where I have needed to use the CreateItemComponent() function as I needed to contain custom buttons within my treeview item components. The issue with this is by moving to CreateItemComponent I have lost the functionality of dragging and dropping as well as holding ctrl and multi selecting items of the treeview. Does anyone have any suggestions as to how to remedy this, are there calls I’m missing as i’m now using a custom component?

Thankyou!

Try using setInterceptsMouseClicks(false, true) on your customComponent. This way the mouse interaction on the component itself is passed on to the tree, the buttons on your custom component will still work.