LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Associate title bar x to panel hide callback

I have a hide panel callback for a panel and would like to associate the x button in the title bar with the hide callback. How do I do this?
0 Kudos
Message 1 of 2
(2,916 Views)
Just put HidePanel() for the call back of your panel, like this:

int CVICALLBACK PanelCB (int panel, int event, void *callbackData,
int eventData1, int eventData2)
{
switch (event)
{
case EVENT_GOT_FOCUS:

break;
case EVENT_LOST_FOCUS:

break;
case EVENT_CLOSE:
HidePanel(Panel);
ProcessDrawEvents();
Delay(5.0);
DisplayPanel(Panel);
ProcessDrawEvents();
Delay(5.0);
QuitUserInterface (0);
break;
}
return 0;
}

This is just an example but works.

vishi

"Greg Byram" wrote in message
news:50650000000800000003750000-1042324653000@exchange.ni.com...
> I have a hide panel callback for a panel and would like to associate
> the x button in the title bar with the hide callback. How do I do
> this?
0 Kudos
Message 2 of 2
(2,916 Views)