Can you customize the display which is set by
? I tried to look into the documentation and source code but didn’t find anything. It doesn’t need lots of modification either, just change colors, remove the round edges and the pointy thing.
Popup display is using BubbleComponent under the hood, so override this method in your own Look And Feel to customise its look.
Cool thanks yeah, that helped! Is there a way to specify the decimal places of the number being shown as well as the position?
If it’s just decimal places then you can use
setNumDecimalPlacesToDisplay https://docs.juce.com/master/classSlider.html#adfdee31f5271d9084e544daaa4c59423, otherwise to customise the text you’ll need to sub-class
Slider and override
getTextFromValue https://docs.juce.com/master/classSlider.html#a5a1693166d0815f812202b1a3a6eb202 or use
Don’t think specifying the position is provided ootb, I needed to add that myself as I wanted some very specific behaviour.
Ok thanks once more!. I’m now forcing the position on every
mouseDown() as well as every
mouseDrag(), which kinda feels like I’m fighting JUCE, but whatever, behaviour is as intendet
Aaaaaaand now it’s perfect thanks! Took me a while to realize I have to overwrite the getter instead of calling a setter though ^^