I need some assistance of how I can create a numeric Editbox, which allows the input of values between a range and show the + or – sign always.
I can’t find something, what is working for 100%. The NumericUpDown, has the buttons to increase/decrease the values, which seems can’t be supressed. (But in my case this is something, what I can not show to the end user)
On the other side the masked textbox doesn’t work either.
What I have to achieve:
Enter values like:
,25 should become +0,25
-1 should become -1,00
and so on
THX for tips
See attached sample. There are 4 NumericUpDown. Two of then use the new appearance key “spinner-showfocus”. It shows the +/- only on focus. You can either create a new appearance in the theme mixin, or modify the original appearance “spinner” to change all spinners in the app.
The mixin sets the maxWidth of the buttons to 0 in the “default” state and resets it in the “focused” state.
You can also change the layout and make the +/- be vertically aligned. Use the Classic-2 theme or add the “buttonsLayout” property to the appearance under “default/properties”:
If the buttons are vertical you need to use a smaller icon. It’s all in Classic-2.theme.
I didn’t understand if you want to see the +/- buttons?
Please login first to submit.