Roberto:
Here is the skeleton code where I am having problems.
Maintest loads maintest.uir, I load an easytab panel, at some point the
user presses
a button and calls Initrecording which at some point calls CountDown.
at that point CntDown.uir is loaded and displayed, but control is kept
within
Maintest.
int MainTest ()
{
if ((TPanelHandle = LoadPanel (0, "MainTest.UIR", T_PANEL)) < 0)
return -1;
/* Two function calls and, Voila!, a tab sheet dialog */
tabCtrl = EasyTab_ConvertFromCanvas(TPanelHandle, T_PANEL_TAB_CANVAS);
EasyTab_LoadPanels (TPanelHandle, tabCtrl, 1, "MainTest.UIR",
__CVIUserHInst, TEMP_SENS, &HandleTempSens, RH_SENS, &HandleRHSens,
0);
InstallPopup(TPanelHandle);
DisplayPanel (TPanelHandle);
RunUserInterfa
ce ();
DiscardPanel(TPanelHandle);
InitializeDigitalPorts();
return 0;
}
int CVICALLBACK InitRecording (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
// stuff ommitted
iStatus = CountDown(CntDownSecs); //Display CountDown / Fire recorder &
airbag
break;
case EVENT_RIGHT_CLICK:
break;
}
return 0;
}
int CountDown (int ValIni)
{
if (InitCVIRTE (0, 0, 0) == 0) /* Needed if linking in external compiler;
harmless otherwise */
return -1; /* out of memory */
if ((panelHandle = LoadPanel (0, "CntDown.uir", PANEL)) < 0)
return -1;
DisplayPanel (panelHandle);
SetCtrlVal (panelHandle, PANEL_NUMERIC, DelaySecs); // Initialize display
counter
RunUserInterface ();
DiscardPanel (panelHandle);
return(CntDownStatus);
}
"Roberto Bozzolo" wrote in message
news:5065000000050000008E1E0000-984882144000@quiq.com...
> This is a very strange behaviour.
> Could you plea
se post a skeleton of your program? I think most things
> will be clearer looking at the actual source code.
> Roberto