11-03-2022 03:43 PM
Hi All,
Can anyone suggest a way to set the increment/decrement value using NumericEdit when clicking the up/down arrows?
The default value is 1. What if I want to set it to 0.1?
Thanks,
Elliot
Solved! Go to Solution.
11-03-2022 06:47 PM
You can use the CoercionInterval
property to change the increment.
11-04-2022 09:54 AM
I tried "CoercionInterval" and set it to 0.1
this.NumericEdit.CoercionInterval = 0.1;
However, the increment/decrement is still 1 when I click it at UI.
11-04-2022 11:04 AM
I tried "CoercionInterval" and set it to 0.1
this.NumericEdit.CoercionInterval = 0.1;
However, the increment/decrement is still 1 when I click it at UI.
11-04-2022 11:31 AM
Strange that setting the property in code did not work for you . . . the only apparent difference was I set it from the property grid (though that just does the same setting in code in the .Design.cs
file):
Are you setting CoercionInterval
anywhere else, perhaps?
11-04-2022 01:25 PM
Find the root cause.
My numeric edit is "sourced" to a slide. BOTH slide and numeric edit should set the CoercionInterval to 0.1.
Thanks for your help!