11-26-2008 07:40 AM
11-26-2008 10:48 AM
From recollection, the TAB effectively becomes a child panel, and as such you need to use your 'Index' value as the corresponding panel handle to access controls on the TAB panel. (I must check this recollection when I get back to a CVI machine... )
JR
11-26-2008 11:40 AM
12-01-2008 11:24 AM
The help for InsertPanelAsTabPage says that it copies the panel and puts it into the tab control at the specified index. Therefore, you have to get the panel handle of the new duplicate panel that was inserted into the tab control using GetPanelHandleFromTabPage.
Panel=LoadPanel (0, "GenepiInterface.uir", SYNC);
Index = InsertPanelAsTabPage (Main, MAIN_TAB, -1, Panel);
GetPanelHandleFromTabPage(Main, MAIN_TAB, Index, &tabPanel);
SetCtrlVal(tabPanel, SYNC_NUM_0, Val);
Hope this helps,
- jared