LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "GetPanelHandleFromTabPage" in certain situation

Solved!
Go to solution

關於GetPanelHandleFromTabPage想要請教各位前輩們

 

如果我在PANEL 底下產生一個TAB物件(TAB1)

 

然後又在此TAB物件的第二個page產生另一個TAB(TAB2)

 

這麼一來,我要怎麼取得TAB2第二個page的handle?

 

麻煩前輩們指點迷津~謝謝~

0 Kudos
Message 1 of 3
(3,468 Views)

I already fix it~!

here is the method to get multilayer tab page handle:

 

static int TABhandle1, TABhandle2;

 

GetPanelHandleFromTabPage(panelHandle,PANEL_TAB,0,TABhandle1); // Get layer one TAB "page 1" handle

GetPanelHandleFromTabPage(TABhandle1,TABPANEL_2_TAB,0,TABhandle2); // Get layer two TAB "page 1" handle

 

Taht's it~

 

Thank you~

 

Jamie

 

 

 

0 Kudos
Message 2 of 3
(3,460 Views)
Solution
Accepted by topic author JamieWang

GetPanelHandleFromTabPage(panelHandle,PANEL_TAB,0,&TABhandle1); // Get layer one TAB "page 1" handle

GetPanelHandleFromTabPage(TABhandle1,TABPANEL_2_TAB,0,&TABhandle2); // Get layer two TAB "page 1" handle

0 Kudos
Message 3 of 3
(3,458 Views)