Mercurial > hg > fxanalyse
diff 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 |
line wrap: on
line diff
--- a/FXAnalyse.c Thu Dec 12 16:26:20 2013 +0100 +++ b/FXAnalyse.c Thu Dec 12 16:44:24 2013 +0100 @@ -2281,10 +2281,12 @@ int CVICALLBACK CB_ShowLog (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) { + int visible; switch (event) { case EVENT_COMMIT: - SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, 1); + GetCtrlVal(panel, PANEL_SHOWLOG, &visible); + SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, visible); break; } return 0; @@ -2297,6 +2299,7 @@ { case EVENT_CLOSE: SetPanelAttribute(LoggingPanel, ATTR_VISIBLE, 0); + SetCtrlVal(MainPanel, PANEL_SHOWLOG, 0); break; } return 0;