New Slider Style Technique


I would like a horizontal slider similar to the old-school look and feel, but want it to have rounded corners.

Looking at the juce_Slider code, when it paints that particular style, it’s performing a drawRectangle.

Without modifying the juce source (unless of course jules wants to slam in a new RoundedLinearBar style), what’s the best way to add a new slider style where the only difference from LinearBar is painting a drawRoundedRectangle rather than a drawRectangle.

Thanks in advance…

-super weenie (still struggling with resizing non DocumentWindows, too!)


Well, the idea is that you’d create your own look and feel class that draws it your way, and pass that to the sliders you want to use it - have a look at Component::setLookAndFeel()