LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric control usage

I'm working on an app using LabWindows/CVI 5.5 that will require the
input of some floating point data. I'd like to use a numeric control
for this to take advantage of the built-in range and error checking,
but I do not want to display a default value. Is there any way to
defeat this or customize the numeric control so that it does not
display a default value?

Thanks,
Vince
0 Kudos
Message 1 of 4
(3,358 Views)
No, a numeric control has to have some value in it. It can't be setup to display nothing. A string control could be used for this, but you would lose the built in range checking, etc. of the numeric control.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 4
(3,358 Views)
Vince,

Something that you could do would be to initially set the text color of the numeric control to be identical to the background color. That would appear to the user as a control with no value. What you'd have to do then would be to catch mouse and keyboard events in the control's callback so that you can restore the color whenever the user "touches" the control for the first time.

Luis Gomes
Message 3 of 4
(3,358 Views)
Luis Gomes wrote in message news:<50650000000500000001320000-991728092000@quiq.com>...
> Vince,
>
> Something that you could do would be to initially set the text color
> of the numeric control to be identical to the background color. That
> would appear to the user as a control with no value. What you'd have
> to do then would be to catch mouse and keyboard events in the
> control's callback so that you can restore the color whenever the user
> "touches" the control for the first time.
>
> Luis Gomes

Thanks Luis! Sounds like a workable solution.
0 Kudos
Message 4 of 4
(3,358 Views)