comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet75.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 536e43f63c81
comparison
equal deleted inserted replaced
28:69b1fa94a4a8 29:4e5843b771cc
52 r2.setText ("R&2"); 52 r2.setText ("R&2");
53 Button r3 = new Button (c1, SWT.RADIO); 53 Button r3 = new Button (c1, SWT.RADIO);
54 r3.setText ("R3"); 54 r3.setText ("R3");
55 Button b2 = new Button (c1, SWT.PUSH); 55 Button b2 = new Button (c1, SWT.PUSH);
56 b2.setText ("B2"); 56 b2.setText ("B2");
57 List l1 = new List (c1, SWT.SINGLE | DWT.BORDER); 57 List l1 = new List (c1, SWT.SINGLE | SWT.BORDER);
58 l1.setItems (["L1"]); 58 l1.setItems (["L1"]);
59 Button b3 = new Button (c1, SWT.PUSH); 59 Button b3 = new Button (c1, SWT.PUSH);
60 b3.setText ("B&3"); 60 b3.setText ("B&3");
61 Button b4 = new Button (c1, SWT.PUSH); 61 Button b4 = new Button (c1, SWT.PUSH);
62 b4.setText ("B&4"); 62 b4.setText ("B&4");
66 Button b5 = new Button (c2, SWT.PUSH); 66 Button b5 = new Button (c2, SWT.PUSH);
67 b5.setText ("B&5"); 67 b5.setText ("B&5");
68 Button b6 = new Button (c2, SWT.PUSH); 68 Button b6 = new Button (c2, SWT.PUSH);
69 b6.setText ("B&6"); 69 b6.setText ("B&6");
70 70
71 List l2 = new List (shell, SWT.SINGLE | DWT.BORDER); 71 List l2 = new List (shell, SWT.SINGLE | SWT.BORDER);
72 l2.setItems ( ["L2"] ); 72 l2.setItems ( ["L2"] );
73 73
74 ToolBar tb1 = new ToolBar (shell, SWT.FLAT | DWT.BORDER); 74 ToolBar tb1 = new ToolBar (shell, SWT.FLAT | SWT.BORDER);
75 ToolItem i1 = new ToolItem (tb1, SWT.RADIO); 75 ToolItem i1 = new ToolItem (tb1, SWT.RADIO);
76 i1.setText ("I1"); 76 i1.setText ("I1");
77 ToolItem i2 = new ToolItem (tb1, SWT.RADIO); 77 ToolItem i2 = new ToolItem (tb1, SWT.RADIO);
78 i2.setText ("I2"); 78 i2.setText ("I2");
79 Combo combo1 = new Combo (tb1, SWT.READ_ONLY | DWT.BORDER); 79 Combo combo1 = new Combo (tb1, SWT.READ_ONLY | SWT.BORDER);
80 combo1.setItems (["C1"]); 80 combo1.setItems (["C1"]);
81 combo1.setText ("C1"); 81 combo1.setText ("C1");
82 combo1.pack (); 82 combo1.pack ();
83 ToolItem i3 = new ToolItem (tb1, SWT.SEPARATOR); 83 ToolItem i3 = new ToolItem (tb1, SWT.SEPARATOR);
84 i3.setWidth (combo1.getSize ().x); 84 i3.setWidth (combo1.getSize ().x);