LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

numeric control : behavior cheanged from cvi6 to cvi7

Hallo,

With CVI 6 after I changed a value in a numeric control and pushed ENTER,
the (new) value was Highlighted. In this way it could be possible to enter
the new value(with the Keyboard) immediately!

Now(CVI 7) the value is not highlighted! Before I can enter the new value I
have to delete the current value, or I have to Highlight the current value
manualy!

Is there a solution to getthe old behavior?

thanks

Babak
0 Kudos
Message 1 of 2
(2,872 Views)
Yes, there is. Create a callback for the numeric control, if you don't already have one, and in the EVENT_COMMIT event (or the EVENT_KEYPRESS event, with VAL_ENTER_VKEY) call SetActiveCtrl (panel, control). That should re-highlight the control value

Luis
NI
0 Kudos
Message 2 of 2
(2,872 Views)