LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to active the new tab in the tab-control version of the GUI in the LabWindow/CVI operator interface?

When I am using the tab-control version of the GUI version in the LabWindow/CVI opeartor interface,
the first time you toggle tabs the new tab won't be 'active'.
After you logon the LabWindow/CVI, open a sequence and run it, the execution window will be shown. In this window, the tab can not work. Only after clicking the mouse in any place in this window, the tab can work. How to correct this behavior? I try to add EasyTab_SetAttribute(), SetCtrlAttr(), SetActivePanel(), or SetActiveControlAny(). All of them don't work. I wonder if the function or the position I put the function into is not correct? Any help appreciate. Thanks.
0 Kudos
Message 1 of 2
(2,878 Views)
hi,
if it can help you, here is a bit of code with tabs that works perfectly.

gti_PanelHandle[CONFIG_RX] = LoadPanel (0, UIR_FILE_NAME, CONFIG_RX);
gti_EasyTabHandle[CONFIG_RX] = EasyTab_Create (gti_PanelHandle[CONFIG_RX], 130, 20, Bcall_Bande_ReseauRX, 0);

iErr = EasyTab_LoadPanels (gti_PanelHandle[CONFIG_RX], gti_EasyTabHandle[CONFIG_RX], 1, UIR_FILE_NAME, __CVIUserHInst, RX_EG900, &gi_EasyTab_Rx_EG900, RX_G1800, &gi_EasyTab_Rx_G1800, RX_G1900, &gi_EasyTab_Rx_G1900, RX_RG850, &gi_EasyTab_Rx_RG850, 0);
if (gi_Active_Band == 0)
EasyTab_SetAttribute (gti_PanelHandle[CONFIG_RX], gti_EasyTabHandle[CONFIG_RX], ATTR_EASY_TAB_ACTIVE_PANEL, gi_EasyTab_Rx_EG900);
else if (gi_Active_Band == 1)
EasyTab_SetAttribute (gti_PanelHandle[CONFIG_RX], gti_EasyTabHandle[C
ONFIG_RX], ATTR_EASY_TAB_ACTIVE_PANEL, gi_EasyTab_Rx_G1800);
else if (gi_Active_Band == 2)
EasyTab_SetAttribute (gti_PanelHandle[CONFIG_RX], gti_EasyTabHandle[CONFIG_RX], ATTR_EASY_TAB_ACTIVE_PANEL, gi_EasyTab_Rx_G1900);
else if (gi_Active_Band == 3)
EasyTab_SetAttribute (gti_PanelHandle[CONFIG_RX], gti_EasyTabHandle[CONFIG_RX], ATTR_EASY_TAB_ACTIVE_PANEL, gi_EasyTab_Rx_RG850);


hope this helps,
flo
0 Kudos
Message 2 of 2
(2,878 Views)