My 2 cents worth:
I activate my (x) in the control bar by adding a callback to my panel.
int CVICALLBACK myXcallback (int p, int event,
void *c, int d1, int d2)
{
if (event == EVENT_CLOSE)
{
HidePanel(p);
}
return 0;
}
However, I also have multiple RunUserInterface(), QuitUserInterface() calls. I have inherited this code, and taking them out makes the panels not process events correctly (or not at all).
- I don't know if my memory leaks are caused by the RunUserInterface() repeatedly or not... I am trying to convert them to ProcessUserEvents() now, to see what that does.