comparison FXAnalyse.c @ 122:bdd3ec3c212e

Improve user interface
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 12 Dec 2013 16:44:24 +0100
parents f48e8ff21f0f
children 35861fe64d14
comparison
equal deleted inserted replaced
121:f48e8ff21f0f 122:bdd3ec3c212e
2279 } 2279 }
2280 2280
2281 int CVICALLBACK CB_ShowLog (int panel, int control, int event, 2281 int CVICALLBACK CB_ShowLog (int panel, int control, int event,
2282 void *callbackData, int eventData1, int eventData2) 2282 void *callbackData, int eventData1, int eventData2)
2283 { 2283 {
2284 int visible;
2284 switch (event) 2285 switch (event)
2285 { 2286 {
2286 case EVENT_COMMIT: 2287 case EVENT_COMMIT:
2287 SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, 1); 2288 GetCtrlVal(panel, PANEL_SHOWLOG, &visible);
2289 SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, visible);
2288 break; 2290 break;
2289 } 2291 }
2290 return 0; 2292 return 0;
2291 } 2293 }
2292 2294
2295 { 2297 {
2296 switch (event) 2298 switch (event)
2297 { 2299 {
2298 case EVENT_CLOSE: 2300 case EVENT_CLOSE:
2299 SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, 0); 2301 SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, 0);
2302 SetCtrlVal(MainPanel, PANEL_SHOWLOG, 0);
2300 break; 2303 break;
2301 } 2304 }
2302 return 0; 2305 return 0;
2303 } 2306 }
2304 2307