Slider Textbox float input


#1

Hello everyone,

is there a way to make it possible to enter float numbers in the textbox of a slider using a , (comma) and not a .(dot)?

Best,

Thomas


#2

You can subclass the Slider class and override the following method:
virtual double getValueFromText (const String& text);
This way you can add the support yourselves, we went even further by allowing users to type in Expressions. Look at the juce_Expression class.


#3

Thanks Rebbur. That was it.