06-05-2008 04:29 AM
06-05-2008 07:24 AM
This is strange: the EasyTab instrument allows you to address every control on the tabbed panels via their panel handle / control ID. The procedure to create a tab control is the following:
// Load the panel with the canvas control
tmpH = LoadPanel (0, "MyUir.UIR", PANEL);
// Load individual panels to be added to the tab control
pnl1H = LoadPanel (tmpH, "MyUir.UIR", PANEL_2);
pnl2H = LoadPanel (tmpH, "MyUir.UIR", PANEL_3);
pnl3H = LoadPanel (tmpH, "MyUir.UIR", PANEL_4);
pnl4H = LoadPanel (tmpH, "MyUir.UIR", PANEL_5);
// Create the tab control and add tabs to it
EasyTab_ConvertFromCanvas (tmpH, PANEL_CANVAS);
EasyTab_AddPanels (tmpH, PANEL_CANVAS, 1, pnl1H, pnl2H, pnl2H, pnl4H, 0);
DisplayPanel (tmpH);
After that, you should be able to set / get the values of a tabbed panel control using Set/GetCtrlVal, this way:
SetCtrlVal (pnl1H, PANEL_2_NUMERIC, 123.45);
Now, are you getting some errors? Is the tab control being displayed correctly?
BTW, which version of CVI are you using? Can you create a small project that shows the same problem and post it to the forum, so that we can look at it?
06-06-2008 01:37 AM
06-06-2008 02:51 AM