I appreciate that JUCE has a bunch of interesting visual styles and look and feels. But I just want the more common style of scroll bar that includes those little buttons at the end that have triangles. Is this possible, or do I need to write my own viewport from scratch?
I think the approach would be to write a custom ScrollBar class and a ViewPort subclass that overrides the createScrollBarComponent method to return an instance of the custom ScrollBar.
Also consider that LookAndFeel
has the areScrollbarButtonsVisible()
method
short answer writing your own ScrollBar might work best.
another option if your buttons position isn’t integral part of the scroll bar is add buttons and use:
bool ScrollBar::setCurrentRange (Range<double>newRange, NotificationType notification)