LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scenario: using enter for field navigation, lose focus if "key repeat"

Good morning, i'm developing a simple scenario, but it is making me waste a lot of time:

 

I have a tab panel with a few (5 or 6) numeric controls.

When panel is "loaded" the focus goes to the first control.

The user must input a value

if the value is not in a known range the Tab panel switches to another error panel wich displays the allowed range

the user press F6 and the focus goes back on the control wich was in wrong range forcing it value on the coerced range

the user MUST use the Enter key to move to the next control

if the user presses once the Enter key ... is all ok...

if the user keeps the Enter Key pressed ... it loses focus and the focus gets lost.

 

How can i prevent this? 

 

I have tryed also including "Key Repeat" or filtering the "Key Repeat?" events... but no luck.

 

Any help appreciated

 

Mauro Alberti

0 Kudos
Message 1 of 2
(2,587 Views)

So, you are using the the <ENTER> key event (value changed?) to change the key focus?

 

Please post your code.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 2
(2,572 Views)