diff dwt/widgets/Control.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 a378481be65f 6f75fdfa1bcd
line wrap: on
line diff
--- a/dwt/widgets/Control.d	Wed Feb 06 15:12:11 2008 +0100
+++ b/dwt/widgets/Control.d	Wed Feb 06 15:45:27 2008 +0100
@@ -53,6 +53,12 @@
 import dwt.dwthelper.utils;
 import dwt.dwthelper.System;
 
+import tango.util.log.Trace;
+static import tango.sys.Common;
+void trc( int line ){
+    Trace.formatln( "Control {}", line );
+}
+
 /**
  * Control is the abstract superclass of all windowed user interface classes.
  * <p>
@@ -2411,6 +2417,7 @@
                     shell.setActiveControl (null);
                 }
                 break;
+            default:
         }
     }
     return true;
@@ -3437,6 +3444,7 @@
         case DWT.TRAVERSE_MNEMONIC:     return traverseMnemonic (event.character);
         case DWT.TRAVERSE_PAGE_NEXT:        return traversePage (true);
         case DWT.TRAVERSE_PAGE_PREVIOUS:    return traversePage (false);
+        default:
     }
     return false;
 }
@@ -3796,6 +3804,7 @@
         case OS.WM_XBUTTONDBLCLK:       result = WM_XBUTTONDBLCLK (wParam, lParam); break;
         case OS.WM_XBUTTONDOWN:         result = WM_XBUTTONDOWN (wParam, lParam); break;
         case OS.WM_XBUTTONUP:           result = WM_XBUTTONUP (wParam, lParam); break;
+        default:
     }
     if (result !is LRESULT.NULL) return result;
     return callWindowProc (hwnd, msg, wParam, lParam);
@@ -4458,6 +4467,7 @@
             /* Save the focus widget when the shell is minimized */
             menuShell ().saveFocus ();
             break;
+        default:
     }
     return LRESULT.NULL;
 }