03-27-2019 03:05 AM
As it is shown in the pic, how to make
pressi S1 to control the highest digit of the number, so I can edit it.
pressi S2 to control the 2nd highest digit of the number, so I can edit it.
.......
pressi S6 to control the lowest digit of the number, so I can edit it.
Thanks a lot~
Solved! Go to Solution.
03-27-2019 03:30 AM
Hi,
you cannot follow your approach directly, i.e., limit editing to one digit. What you could do instead is, e.g., make use of a popup panel with a regular numeric control where you enter a number between 0 and 9. Then you use this number with the appropriate math (displayed number = s1-value + s2-value / 10 + s3-value / 100 ...) to calculate and display the new value on your panel.
03-28-2019 05:20 AM
As an alternative approach I made up a quick and dirty example that leverages the increment value attribute to permit editing the individual digits of a numeric:
This example does not handle the digit rollover as probably your instrument does (i.e. when incrementing hundredths it moves tenths as well: 0.080, 0.090, 0.100, 0.110....) since it actually operates on the numeric value and not on the digits.