LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Numerical control with callback and tab order

I have a numerical control (control mode hot) with a callback function.  I want the user to enter the value then TAB to the next control.  The TAB generates an event and the callback performs as expected, but the cursor does not advance to the next control in the tab order.  It seems to advance to an arbitrary control in the tab order.  How can I get the control focus to advance to the next control in the tab order, after completing the callback?  Thanks.

0 Kudos
Message 1 of 3
(2,775 Views)

I see no way that the tab order logic is not honoured! Tabbing on a control will cause focus to pass to the next control in the tab order, provided that:

  • The control callback itself does not alter this logic
  • The next control is a active one: if the next control is an indicator and/or is dimmed/hided focus passes to the next-plus-one control and so on until an active control is found


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,774 Views)

Thanks for the quick response.  In the meantime I found that the callback was setting an active tab page - which of course changed the keyboard focus.  Switched to ATTR_CTRL_INDEX and all is well. Thanks.

0 Kudos
Message 3 of 3
(2,769 Views)