comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet268.d @ 109:8ae65ae167f5

Updated swt win32 for DMD 1.063 and latest Tango trunk.
author Jacob Carlborg <doob@me.com>
date Wed, 15 Sep 2010 16:42:28 +0200
parents 69b1fa94a4a8
children 9f4c18c268b2
comparison
equal deleted inserted replaced
108:b397a43d66d1 109:8ae65ae167f5
32 import org.eclipse.swt.graphics.Point; 32 import org.eclipse.swt.graphics.Point;
33 import org.eclipse.swt.layout.FillLayout; 33 import org.eclipse.swt.layout.FillLayout;
34 34
35 import tango.io.Stdout; 35 import tango.io.Stdout;
36 import tango.util.Convert; 36 import tango.util.Convert;
37 import tango.core.Thread; 37 //import tango.core.Thread;
38 38
39 void main(String[] args) { 39 void main(String[] args) {
40 Display display = new Display(); 40 Display display = new Display();
41 Shell shell = new Shell(display); 41 Shell shell = new Shell(display);
42 shell.setLayout(new FillLayout()); 42 shell.setLayout(new FillLayout());
63 event.x = pt.x; 63 event.x = pt.x;
64 event.y = pt.y; 64 event.y = pt.y;
65 event.count = -2; 65 event.count = -2;
66 display.post(event); 66 display.post(event);
67 try { 67 try {
68 Thread.sleep(400/1000); 68 Thread.sleep(400);
69 } catch (InterruptedException e) {} 69 } catch (InterruptedException e) {}
70 } 70 }
71 Stdout("Thread done\n").flush(); 71 Stdout("Thread done\n").flush();
72 }); 72 });
73 73