Complex Tree View controls possible?


#1

I’m looking to build a reasonably complex tree view UI like this one (done with WPF), is it possible to do something like this in JUCE with checkboxes, dropdown, etc. on each row ?


#2

yes

https://www.juce.com/doc/classTreeViewItem#af821a303a31a9256e00b94ff8fe2595d


#3

Thanks for the quick reply !

Ok, so you implement TreeViewItem::createItemComponent() ?

Do you create a Component in this method, then create and add child Components (dropdown, checkboxes, buttons, etc) that make up the row(s) of controls that will appear when this Component is shown in the TreeView, then return the pointer ?


#4

If you had a massive GUI that subclassed ‘Component’ with tons of child
components, you could return an instance of that class whenever this method
is called. Check out the demo project.