I would like to use CWNumeEdit in a VB6 program I am developing in order to achieve:
. Automatic range checking
. Automatic formatting of values entered
I'm encoutering a strange behaviour of CWNumEdit, in that I can enter the value '14' and the control correctly displays '14.0', but if I input '14.4' the control displays '60.0' that is the maximum allowed value for the control.
Control settings are as follows:
'Numeric' tab:
Range checking: do checking; range 0 ÷ 60
Continuous values
'Format' tab:
Style: .0 "V"
Seems that I need to scale values, but if use *.1 "V" format the control displays correctly the '14.4' value but when I input '14' this is displayed as '1.4'. Since I want to use it to facilitate the operator
in setting his test, I can't force him to input '14.0' when he simply needs 14 volts.
I guess the answer is so simple, but I haven't found it yet. Can someone please help me?
I'm using CW version 3.0.1.
Roberto