When a panel is minimized, CVI receives an EVENT_LOST_FOCUS. When you receive that event, check the panel attributes to see if the panel is minimized.
1. Create a callback function for the panel:
1.1 In the UI Editor, double-click on a blank spot on the panel to edit the panel (or select the panel and goto Edit >> Panel).
1.2 Enter a function name in the box labeled Callback Function, then click OK.
1.3 In the UI Editor, select the panel, then goto Code >> Generate >> Panel Callback
2. Edit the panel callback to check if the panel is minimized.
2.1 If in the UI editor, select the panel and goto Code >> View >> Panel Callback.
2.2 In the EVENT_LOST_FOCUS case, add the following code.
case EVENT_LOST_FOCUS:
GetPanelAttribute (panelHandle, ATTR_WINDOW_ZOOM, &panelZo
om);
if (panelZoom == VAL_MINIMIZE)
{
// add your code here.
// MessagePopup included for demonstration purposes.
MessagePopup ("Minimized", "Minimized");
}
break;