Hi
I"ve noticed that when using a treeview, i never get a horizontal scrollbar…
it might be something i’m doing wrong (though i can’t figure what, i’m prettymuch just using the base class).
i didn’t dig too deeply into the code, but it seems that the horizscrollbar thinks isVisible() is true…
[quote]
i’m not using components – just overriding paint…[/quote]
Hmmm, I’m pretty sure my treeview had a horizontal scrollbar when I was just overriding the paint method, but broke when I switched to components. That was a while back though, so I may be remembering wrongly, or something may have changed in JUCE.
If you had used search, I brought this up before, but before I did so I examined the code for the treeview.
Basically, with how it works right now, it cannot know the width of things, due to that they draw themselves; so I proposed adding a function to the treeviewitem class that returns a preferred width, something like int getPreferredWidth() or something, which of course would be updated with the tree is redrawn or whatnot.