LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetPanelHandleFromTabPage on Nested Tabs

I'm having trouble getting the panel handles from nested tab controls. I have two main tabs with nested tabs under each of those. When I try to get a handle from one of the nested tabs under the second main tab, It seems to return a handle from a nested tab under the first main tab.

 

I've attached an example of what I'm trying to do. See the *.c file for the specific issue I'm having.

 

Thanks,

 

James

 

 

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

And of course I had a face palm moment as soon as I posted this.

 

The issue was using the wrong parent tab handle (index 0 instead of index 1). The fix is to call the first get handle funtion twice.

 

GetPanelHandleFromTabPage(panelHandle, PANEL_TAB, 0, &tabPanel); //tabpanel is used for getting handles of first tab's subtabs.

GetPanelHandleFromTabPage(panelHandle, PANEL_TAB, 1, &tabPanel2); //tabpanel2 is used for getting handles of second tab's subtabs.

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