for a LinearBar slider with vertical instead of horizontal mouse dragging I made a new class inherited from slider in which I overwrote slider::mousedrag(). The new mousedrag() function is quite copy & paste from the slider function with little adjustments. Since a lot of used members in mousedrag() are defined in the slider class’s private section (and don’t have get-functions) it won’t compile unless I move them to protected.
This seems to work, but it’s not very pretty messing with juce_amalgamated.h (which would be necessary again with juce updates), and of course there probably is some sense in having private class members.
So, is there some way of doing this fine?
I thought about copying the whole slider class but than I think I have to copy the SliderListener as well. And this also doesn’t seem very nice programming.