Mercurial > projects > dwt2
diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.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 | 9f4c18c268b2 |
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.d Sun Mar 22 15:17:04 2009 +0100 +++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.d Sun Mar 22 19:55:00 2009 +0100 @@ -30,11 +30,11 @@ void main () { auto display = new Display (); auto shell = new Shell (display); - auto table = new Table (shell, SWT.MULTI | DWT.BORDER | DWT.FULL_SELECTION); + auto table = new Table (shell, SWT.MULTI | SWT.BORDER | SWT.FULL_SELECTION); table.setLinesVisible (true); table.setHeaderVisible (true); char[][] titles = [" ", "C", "!", "Description", "Resource", "In Folder", "Location"]; - int[] styles = [SWT.NONE, DWT.LEFT, DWT.RIGHT, DWT.CENTER, DWT.NONE, DWT.NONE, DWT.NONE]; + int[] styles = [SWT.NONE, SWT.LEFT, SWT.RIGHT, SWT.CENTER, SWT.NONE, SWT.NONE, SWT.NONE]; foreach (i,title; titles) { auto column = new TableColumn (table, styles[i]); column.setText (title);