diff dwt/widgets/ScrollBar.d @ 82:43c42c637c9c

First simple example works
author Frank Benoit <benoit@tionex.de>
date Wed, 06 Feb 2008 15:45:27 +0100
parents 205350493476
children 3926f6c95d6f
line wrap: on
line diff
--- a/dwt/widgets/ScrollBar.d	Wed Feb 06 15:12:11 2008 +0100
+++ b/dwt/widgets/ScrollBar.d	Wed Feb 06 15:45:27 2008 +0100
@@ -676,6 +676,7 @@
                 case OS.SB_VERT:
                     bar = parent.getHorizontalBar ();
                     break;
+                default:
             }
             bool both = bar !is null && !bar.getVisible ();
             OS.ShowScrollBar (hwnd, both ? OS.SB_BOTH : flags, false);
@@ -915,6 +916,7 @@
         case OS.SB_LINEUP:          event.detail = DWT.ARROW_UP;  break;
         case OS.SB_PAGEDOWN:        event.detail = DWT.PAGE_DOWN;  break;
         case OS.SB_PAGEUP:          event.detail = DWT.PAGE_UP;  break;
+        default:
     }
     sendEvent (DWT.Selection, event);
     // the widget could be destroyed at this point