Another one. Sorry for all the questions on a Sunday, an unfortunate side-effect of my being a weekend warrior
Because the scrollbars in Viewport always appear next to it, and in my program I wanted scrollbars that are not immediately next to the viewport they relate to, I hid the viewport scrollbars, and instantiated two scrollbars of my own in the viewport’s containing component, copying the scrollbar functionality from within viewport to make them work the same way.
That worked fine for me until I update to the latest Modules branch yesterday, where now I get the below error:
error C2247: ‘juce::AsyncUpdater::cancelPendingUpdate’ not accessible because ‘juce::ScrollBar’ uses ‘private’ to inherit from ‘juce::AsyncUpdater’
This relates to the two lines of code below, repeated for H & V scrollbars inside Viewport’s updateVisibleArea function, and inside my own updateVisibleArea that I copied to:
Now to my question:
How come viewport gets to make those calls to those scrollbar methods, and my code doesn’t?