LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TAB key doesn't work in tabpage which load by "EasyTab_LoadPanels"!

TAB key doesn't work in tabpage which load by "EasyTab_LoadPanels"

Please help me!
0 Kudos
Message 1 of 2
(3,036 Views)
What do you mean "TAB key doesn't work"?
Do you mean pressing the tab key doesn't advance you to the next control? The controls need to be hot or normal and not dimmed to be a tab stop. Tabbing from one hot or normal undimmed control to the next does work on tab pages loaded by EasyTab_LoadPanels.
Tabbing on a tab page doesn't limit you to controls on that page: when you reach the last control in the tab-order for that page, tabbing will continue to the next control in the tab-order for the parent panel. (In the UI editor, select the panel of interest and press Ctrl-T to see or set its tab-order). If you want tabbing to circulate only on the current tab page and not return to the parent panel, you need to do it programmatically. You need to create a callback for
each control on the page, include an EVENT_KEYPRESS in each callback, and check for eventData1 == KEYCODE_TAB in that event case.
To limit tabbing to controls on one page, see my TabOrder example here. It doesn't use tab pages, but the same idea can apply if you extend it. My example has one list of controlls in the tab order. You'll have a list for each page.
Message 2 of 2
(3,036 Views)