Customize Slider Popupdisplay

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, otherwise to customise the text you’ll need to sub-class Slider and override getTextFromValue or use textFromValueFunction

Don’t think specifying the position is provided ootb, I needed to add that myself as I wanted some very specific behaviour.

1 Like

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 :slight_smile:



Aaaaaaand now it’s perfect thanks! :smiley: Took me a while to realize I have to overwrite the getter instead of calling a setter though ^^