[dasher: 23/217] Win32: BP_SHOW_SLIDER now controls status bar visibility.



commit b779e0c2317131cf15a94706ea855f5393453582
Author: ipomoena <amajorek google com>
Date:   Thu Sep 10 15:29:51 2015 -0700

    Win32: BP_SHOW_SLIDER now controls status bar visibility.
    
    Same behavior as Linux version.

 Src/Win32/Dasher.rc        |    2 +-
 Src/Win32/DasherWindow.cpp |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Src/Win32/Dasher.rc b/Src/Win32/Dasher.rc
index 015120b..b5a7a09 100644
--- a/Src/Win32/Dasher.rc
+++ b/Src/Win32/Dasher.rc
@@ -183,7 +183,7 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1
 BEGIN
     CONTROL         "Control mode",IDC_CONTROLMODE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,54,59,10
     CONTROL         "Show toolbar",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,30,58,10
-    CONTROL         "Show speed control",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,42,79,10
+    CONTROL         "Show statusbar",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,42,66,10
     CONTROL         "Timestamp new files",IDC_TIMESTAMP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,18,80,8
     CONTROL         "Stand-alone",IDC_STYLE_STANDALONE,"Button",BS_AUTORADIOBUTTON | WS_GROUP | 
WS_TABSTOP,204,96,55,10
     CONTROL         "Composition",IDC_STYLE_COMPOSITION,"Button",BS_AUTORADIOBUTTON | 
WS_TABSTOP,204,120,55,10
diff --git a/Src/Win32/DasherWindow.cpp b/Src/Win32/DasherWindow.cpp
index 1bec694..b48f3ac 100644
--- a/Src/Win32/DasherWindow.cpp
+++ b/Src/Win32/DasherWindow.cpp
@@ -154,6 +154,7 @@ void CDasherWindow::HandleParameterChange(int iParameter) {
   case APP_BP_SHOW_TOOLBAR:
     m_pToolbar->ShowToolbar(m_pAppSettings->GetBoolParameter(APP_BP_SHOW_TOOLBAR));
     break;
+  case BP_SHOW_SLIDER:
   case APP_LP_STYLE:
     Layout();
     break;
@@ -386,7 +387,7 @@ void CDasherWindow::Layout() {
 
   int ToolbarHeight = m_pAppSettings->GetBoolParameter(APP_BP_SHOW_TOOLBAR) ? m_pToolbar->GetHeight() : 0;
 
-  int SpeedAlphabetHeight = m_pSpeedAlphabetBar->GetHeight();
+  int SpeedAlphabetHeight = m_pAppSettings->GetBoolParameter(BP_SHOW_SLIDER) ? 
m_pSpeedAlphabetBar->GetHeight() : 0;
   m_pSpeedAlphabetBar->MoveWindow(0, Height - SpeedAlphabetHeight, Width, SpeedAlphabetHeight);
 
   int CanvasY = ToolbarHeight;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]