Changeset 604
- Timestamp:
- 09/06/08 11:14:19 (3 months ago)
- Files:
-
- trunk/demos/gtkD/TestWindow/TestWindow.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demos/gtkD/TestWindow/TestWindow.d
r593 r604 78 78 private import gtk.HandleBox; 79 79 private import gtk.Toolbar; 80 private import gtk.SeparatorToolItem; 81 private import gtk.ToolButton; 80 82 private import gtk.RadioButton; 81 83 private import gtk.CheckButton; … … 197 199 //Frame.defaultBorder = 7; 198 200 199 VBox mainBox = new VBox(false,3); 200 //Table table = new Table(1,5,false); 201 //table.attach(getMenuBar(),0,1,0,1,AttachOptions.EXPAND,AttachOptions.SHRINK,0,0); // adding to the window 201 VBox mainBox = new VBox(false,0); 202 202 mainBox.packStart(getMenuBar(),false,false,0); 203 //table.attach(getToolbar(),0,1,1,2,AttachOptions.EXPAND,AttachOptions.SHRINK,0,0);204 203 mainBox.packStart(getToolbar(),false,false,0); 205 204 206 205 Notebook notebook = setNotebook(); 207 206 notebook.setBorderWidth(10); 208 //table.attach(notebook,0,1,2,3,AttachOptions.EXPAND,AttachOptions.FILL,4,4);209 207 mainBox.packStart(notebook,true,true,0); 210 208 … … 218 216 bBox.packEnd(cancelButton,0,0,10); 219 217 bBox.packEnd(quitButton,0,0,10); 220 //table.attach(bBox,0,1,3,4,AttachOptions.EXPAND,AttachOptions.SHRINK,0,0);221 218 mainBox.packStart(bBox,false,false,0); 222 219 223 220 Statusbar statusbar = new Statusbar(); 224 225 //table.attach(statusbar,0,1,4,5,AttachOptions.EXPAND,AttachOptions.EXPAND,0,0);226 //add(table);227 //mainBox.packStart(table,true,true,0);228 221 229 222 mainBox.packStart(statusbar,false,true,0); … … 362 355 HandleBox handleBox = new HandleBox(); 363 356 Toolbar toolbar = new Toolbar(); 364 toolbar. appendWidget(new Button(StockID.OPEN, true),"Toolbar button 1","Private text 1");365 toolbar. appendWidget(new Button(StockID.CLOSE, true),"Toolbar button 2","Private text 2");366 toolbar. appendSpace();367 toolbar. appendWidget(new Button(StockID.SAVE, true),"Toolbar button 3","Private text 3");368 toolbar. appendWidget(new Button(StockID.SAVE_AS, true),"Toolbar button 4","Private text 4");357 toolbar.insert(new ToolButton(StockID.OPEN)); 358 toolbar.insert(new ToolButton(StockID.CLOSE)); 359 toolbar.insert(new SeparatorToolItem()); 360 toolbar.insert(new ToolButton(StockID.SAVE)); 361 toolbar.insert(new ToolButton(StockID.SAVE_AS)); 369 362 370 363 handleBox.add(toolbar);
