I could manage to draw my own slider background and thumb using lookandfeel but there is one thing what I couldn’t find out yet and where i need your help.
When I draw my own slider thumb, then the current slider value corresponds to the left hand side of my slider thumb. That means,
the slider value is 0 if the thumb is at the very left position of my slider. That’s fine.
But if I move the slider thumb to the max slider value, the thumb moves out of the graphics context and disappear.
I could of course keep the thumb inside the clip region by using code like this within the lookandfeel drawLinearSliderThumb method:
if (sliderPos > (width - linearFaderThumb->getWidth()))
sliderPos = (float)(width - linearFaderThumb->getWidth());
but then the slider value still changes if the thumb hits the very right end of the drawing area.
So what I would like to do is either reducing the lenght of the slider “way” to get the max value if the right hand side of the slider thumb
hits the very right end of the drawing area or
drawing the thumb exactly at the position of the bubble thumb of a “no- lookandfeel” - slider because that behaves right.
Thank you in advance,