LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically setting tab order?

Solved!
Go to solution

Hi,

 

If I add controls using either NewCtrl(..) or DuplicateCtrl(..) to an already existing panel that I loaded with LoadPanel(..), is there a way to change the sequence that the controls are cycled through when using the tab key (or to insert the new controls where I want them in the sequence), or will the added controls always be at the end of the sequence?  As far as I can tell, there doesn't appear to be a way to do this but I thought I would ask just in case I'm missing something.

 

Thanks.

0 Kudos
Message 1 of 4
(4,441 Views)
Solution
Accepted by topic author tstanley

SetCtrlAttribute (panel_handle, control_id, ATTR_CTRL_TAB_POSITION, tab_order);

0 Kudos
Message 2 of 4
(4,434 Views)

Thanks Wolfgang, I knew I was missing something obvious!  Smiley Happy

0 Kudos
Message 3 of 4
(4,416 Views)

My pleasure.

0 Kudos
Message 4 of 4
(4,414 Views)