10-29-2009 03:37 AM
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
10-29-2009 08:05 AM
So, you are using the the <ENTER> key event (value changed?) to change the key focus?
Please post your code.