Start and End Angle of an Customized Rotary Slider?

Hi there,

From the class LookAndFeel_V4 I use the method

void drawRotarySlider (juce::Graphics& g, int x, int y, int width, int height, float sliderPos, const float rotaryStartAngle, const float rotaryEndAngle, juce::Slider& slider) override

to draw my own rotary slider. Where are the parameters rotaryStartAngle and rotaryEndAngle configured or where can I adjust them?

Slider::SetRotaryParameters(…) has no effect: I only can get these values in drawRotarySlider via slider.getRotaryParameters.

thanks in advance for any feedback!

This is the correct function to use. I recommend double-checking that you’ve passed sensible values for the start and end angles.

1 Like

Thank you, you are right!

A really stupid mistake on my part: setRotaryParameters called twice in the constructor of the slider AND in the constructor of the parent component… :face_with_raised_eyebrow: