I do use multiple panels:
if ((frntPanel = LoadPanel (0, "TestSetUp0316.uir", FRNT_PANEL)) < 0)
return -1;
if ((dataDispPanel = LoadPanel (0, "TestSetUp0316.uir", DATAPLOT)) < 0)
return -1;
if ((cvread = LoadPanel (0, "TestSetUp0316.uir", CTREAD)) < 0)
return -1;
I made all Panels top level panels for simplicity.
And I have a command button on the Panel CTREAD that displays the panel DATAPLOT, when clicked.
The Panel DATAPLOT is hidden using HidePanel when you click the button Close.
It is updated with graphs every ten seconds even if not displayed.
the error Invalid control ID occurred after 30 min of testing.
Please advise,
Thanks