diff user/dragdrop/texttolabel.d @ 39:8ee0dfe6f685

Snippet134 with non rectangular shell. Some more minor fixes.
author Frank Benoit <benoit@tionex.de>
date Thu, 13 Mar 2008 23:53:38 +0100
parents 200a229be5ca
children
line wrap: on
line diff
--- a/user/dragdrop/texttolabel.d	Mon Mar 10 04:59:18 2008 +0100
+++ b/user/dragdrop/texttolabel.d	Thu Mar 13 23:53:38 2008 +0100
@@ -5,7 +5,7 @@
  * http://www.java2s.com/Tutorial/Java/0280__SWT/DragselectedtextinTexttoLabel.htm
  *
  * Drag sellected text to a label.
- * 
+ *
  * Port to the D programming language:
  *     Jesse Phillips <Jesse.K.Phillips+D> gmail.com
  *
@@ -26,13 +26,14 @@
 import dwt.widgets.Label;
 import dwt.widgets.Shell;
 import dwt.widgets.Text;
+import dwt.dwthelper.utils;
 
 import tango.io.Stdout;
 
 void main() {
     auto display = new Display();
     auto shell = new Shell(display);
-    
+
     auto text = new Text(shell, DWT.BORDER|DWT.SINGLE);
 
     int i = 0;
@@ -41,7 +42,7 @@
     types[0] = TextTransfer.getInstance();
     auto source = new DragSource(text, DND.DROP_MOVE | DND.DROP_COPY);
     source.setTransfer(types);
-    
+
     source.addDragListener(new class DragSourceAdapter {
       public void dragSetData(DragSourceEvent event) {
         // Get the selected items in the drag source