I needed to switch from using a Listbox to using a TreeView. In a test app, I simply added a TreeView to my main view component, and set its root item (and that item’s sub-items), then overrode paintItem in my derived TreeViewItem class.
So, next, in Projucer, I created a class derived from TreeView, in order to hold some other information (such as lo-res and hi-res bitmaps to support HiDPI), and dropped that on a component view (again, overriding the derived TreeViewItem’s paintItem() function and setting its root item, to the same item that my simple TreeView object used in my test app). But even though this class I derived from TreeView is created fine, and its root item is set, the individual items are never drawn.
The only difference I see from my test is that I’m using a derived class from TreeView, instead of directly using a TreeView object. Is there some function I need to override in order to get my derived class to behave the same as a simple TreeView instance would?