setSliderStyle overrides setTextBoxStyle

Using JUCE 7.0.8, I discovered a slight oddity.

setSliderStyle (juce::Slider::SliderStyle::RotaryHorizontalDrag);

this code seems to override the following, causing the text box to remain in view.

setTextBoxStyle (juce::Slider::NoTextBox, false, 0, 0);

However, if I set the SliderStyle to Linear, then the text box disappears.

I’m not sure I follow. I opened the DemoRunner and in the WidgetDemo I tried a number of variations, I can’t see anything obviously wrong. Could you possibly try the latest version of JUCE on develop and share some code if you’re still seeing an issue. Thanks.

Not an issue with JUCE. It’s an issue on my end.

Someone had left a call to setSliderStyle in our Custom Look and Feel’s drawRotarySlider function.

Sorry for wasting your time.

1 Like