LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect the key enter with a numerical control without using loop event?

I want to accept a numerical value only when the key enter is pressed, but without using the event. How to detect the char "enter" with a numerical control?

Thanks!
0 Kudos
Message 1 of 6
(3,412 Views)
Hi,

maybe you can look here.
I think its nearly the same.

Regards Thomas
0 Kudos
Message 2 of 6
(3,412 Views)
That applies for a string control, I use a digital control. I want to determine when the user presses on the key return, but I do not find the means so that labview turns over me the ASCII chains of the digital control.
0 Kudos
Message 3 of 6
(3,412 Views)
When the user edits a numeric control with a keyboard, its property "key focus" is true. When the user hits enter, key focus becomes false. Poll the property to latch the control valuse at the true-false transition. That won't work if the user modify the control using up and down arrows.


LabVIEW, C'est LabVIEW

0 Kudos
Message 4 of 6
(3,412 Views)
I use keyfocus but the keyfocus become false if the user mouse click out of control. That's the problem!
0 Kudos
Message 5 of 6
(3,412 Views)
When the user takes the mouse to click elsewhere in the window, that ususally means that he is done with keyboard edition. Most user interfaces interpret the mouse click that way since the user really focus elsewhere in the window.


LabVIEW, C'est LabVIEW

0 Kudos
Message 6 of 6
(3,412 Views)