Using K for numeric entry in sliders

Hi all,

I just had an interesting request from a customer: to be able to type “K” or “k” in the numeric field of a slider, and have it translated into “000.” Since Juce is pretty big, it is worth asking if this has already been implemented. If not, anyone have any implementation suggestions?

Thanks,

Sean Costello

Yep , you have the following method in Slider, which should do the trick :wink:

virtual double getValueFromText (const String &text)

[quote=“dinaiz”]Yep , you have the following method in Slider, which should do the trick :wink:

virtual double getValueFromText (const String &text)[/quote]

Yeah, that would do it! Thanks!

Sean Costello

You’re very welcome. You’re the guy behind ValhallaShimmer right ? If you are, I’m a big fan :smiley: