Hi,
I am using CVI Ver6.0.
I have an application that creates a main panel with a Tab control created using the EasyTab functions.
Most of the information about the application is defined in a file and therefore each of the Tab Panel are created dynamically such as;
for(n=.........)
{
tab_panel[n] = NewPanel(main_panel, ......);
....
}
I then add the tab panels using
switch(numOfPanels)
{
case ONE_PANEL:
EasyTab_AddPanels(main_panel, tabCtrl, ONE_ROW, tab_panel[0], 0); // add one panel
break;
case TWO_PANEL:
EasyTab_AddPanels(main_panel, tabCtrl, ONE_ROW, tab_panel[0], tab_panel[1], 0); // add two panels
break;
......//add more panels
}
At the moment my switch statement limits the number of tabs added.
Is there a way to make the statement EasyTab_AddPanels(main_panel, tabCtrl, ONE_ROW, ....) my dynamic so that I can get rid of the switch statement.
Regards
Ray Farmer
Regards
Ray Farmer
