Get Rid of Border for Slider::LinearBarVertical

gui

#1

Hi, I am working on implementing custom graphics for sliders in a plugin via the look and feel class. I am using thumbless sliders (sliderstyle = Slider::LinearBarVertical).

I have successfully overridden the drawLinearSlider method in my LookAndFeel class and am rendering my custom graphics, but a 1px border is still drawn around the edge of slider. I have been searching the documentation, but can’t seem to find where this comes from.

What do I have to override to get rid of the border?


#2

The linear bar style slider box gets drawn in the Slider::paint() method. It uses the Slider::textBoxOutlineColourId colour to draw it though so if you set this to a transparent colour it won’t be visible.