02-21-2008 08:00 AM
02-22-2008 01:29 AM
02-22-2008 01:40 AM
Tab control has been discussed several times on the forums since its usage is not immediate and intuitive as other controls are. You must understand that the tab control is really a collection of child panels of the panel the control is on (this is more evident to users that used to use the old EasyTab.fp instrument prior to native tab control introduced in version 8); each of the pages of the tab control has its own handle which you can retrieve using GetPanelHandleFromTabPage function. Controls on a tab page can be accessed through this panel handle and not via the parent panel handle.
Here you can find a discussion that clarifies a little this argument.
02-22-2008 02:20 AM
Ok!
Voici le code que j'utilise pour controler mes infos:
int CVICALLBACK NextCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrCharge, &NbCharge);
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrAlim, &NbAlim);
SetCtrlVal (PAN_NCONF, TABALIM_INbAlim, NbAlim);
DiscardPanel (panelNew);
if ((panelNew = LoadPanel (0, "ADE_PSA.uir", PANEL_NEW)) < 0)
return -1;
DisplayPanel (panNConf);
break;
}
return 0;
}
02-22-2008 02:20 AM
Ok!
Voici le code que j'utilise pour controler mes infos:
int CVICALLBACK NextCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrCharge, &NbCharge);
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrAlim, &NbAlim);
SetCtrlVal (PAN_NCONF, TABALIM_INbAlim, NbAlim);
DiscardPanel (panelNew);
if ((panelNew = LoadPanel (0, "ADE_PSA.uir", PANEL_NEW)) < 0)
return -1;
DisplayPanel (panNConf);
break;
}
return 0;
}
02-22-2008 02:20 AM
Ok!
Voici le code que j'utilise pour controler mes infos:
int CVICALLBACK NextCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrCharge, &NbCharge);
GetCtrlVal (panelNew, PANEL_NEW_NUMERIC_NbrAlim, &NbAlim);
SetCtrlVal (PAN_NCONF, TABALIM_INbAlim, NbAlim);
DiscardPanel (panelNew);
if ((panelNew = LoadPanel (0, "ADE_PSA.uir", PANEL_NEW)) < 0)
return -1;
DisplayPanel (panNConf);
break;
}
return 0;
}
02-22-2008 02:28 AM