Sliders IncDecButtons interval value and number of decimals shown are tied. In "setRange" method numDecimalPlaces is calculated.
Please add setNumDecimalPlacesToDisplay() method. When I click IncDecButtons buttons I want interval 1 (or even higher) but when number is eneterd via keyboard I need 4 decimal places.
But adding a method setNumDecimalPlacesToDisplay() won't help you here. If you set an interval of 1 for IncDecButtons, then the value of that field can never be anything in between, no matter what you enter into the text field or how many additional decimal places it shows. They will always be zeros anyway, so what's the point of showing those?
There is unfortunately no way to have a slider use one interval for the buttons and another interval for editing the text field directly. It only has one interval. That's how juce::Slider works. You'd need to write some custom code for this special case.