Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet47.d @ 29:4e5843b771cc
First snippets buildable on windows
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 22 Mar 2009 19:55:00 +0100 |
parents | 69b1fa94a4a8 |
children |
comparison
equal
deleted
inserted
replaced
28:69b1fa94a4a8 | 29:4e5843b771cc |
---|---|
50 gc = new GC (hotImage); | 50 gc = new GC (hotImage); |
51 gc.setBackground (color); | 51 gc.setBackground (color); |
52 gc.fillRectangle (hotImage.getBounds ()); | 52 gc.fillRectangle (hotImage.getBounds ()); |
53 gc.dispose (); | 53 gc.dispose (); |
54 | 54 |
55 ToolBar bar = new ToolBar (shell, SWT.BORDER | DWT.FLAT); | 55 ToolBar bar = new ToolBar (shell, SWT.BORDER | SWT.FLAT); |
56 bar.setSize (200, 32); | 56 bar.setSize (200, 32); |
57 for (int i=0; i<12; i++) { | 57 for (int i=0; i<12; i++) { |
58 ToolItem item = new ToolItem (bar, 0); | 58 ToolItem item = new ToolItem (bar, 0); |
59 item.setImage (image); | 59 item.setImage (image); |
60 item.setDisabledImage (disabledImage); | 60 item.setDisabledImage (disabledImage); |