How to add a slider, but without the slider bit?


Let’s suppose that you have added a slider to a GUI with an edit box, but one day you realise that the slider part has outgrown its usefulness.

How might one go about removing it? There appears to be no slider->disableSliderBit(true).

Or can Labels or Text Editor boxes be configured to only accept (int/float) numbers with specific min/max/interval, like the edit box of a slider?

I’m asking for a friend…


In my opinion the slider needs a true text-only mode, but there are some tricks to get something like you requested


If I understand,
To remove you can :

For the only float number you can:

float stringToFloat (String& str)
        return str.getFloatValue();
        return 0.0f;


Thanks! I’ll (or rather my friend will…) give it a go.