Changeset 184 for Docking/CoolDocking/Demo/IDE/UMainForm.pas
- Timestamp:
- Mar 10, 2011, 9:57:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r182 r184 11 11 UMessagesForm, UCallStackForm, ULocalVariablesForm, UToDoListForm, 12 12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCoolDockWindowList, 13 UCoolDockCustomize ;13 UCoolDockCustomize, UComponentTree; 14 14 15 15 const … … 22 22 TMainForm = class(TForm) 23 23 published 24 AViewComponentTree: TAction; 24 25 AExit: TAction; 25 26 ANewFile: TAction; … … 57 58 MenuItem20: TMenuItem; 58 59 MenuItem21: TMenuItem; 60 MenuItem22: TMenuItem; 59 61 MenuItem23: TMenuItem; 60 62 MenuItem24: TMenuItem; … … 73 75 MenuItem1: TMenuItem; 74 76 MainMenu1: TMainMenu; 75 Panel1: TPanel;77 DockPanel: TPanel; 76 78 ToolBar1: TToolBar; 77 79 ToolButton1: TToolButton; … … 80 82 procedure AExitExecute(Sender: TObject); 81 83 procedure ANewFileExecute(Sender: TObject); 84 procedure AViewComponentTreeExecute(Sender: TObject); 82 85 procedure AViewThreadStatusExecute(Sender: TObject); 83 86 procedure AViewCallStackExecute(Sender: TObject); … … 153 156 DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName); 154 157 if not Assigned(DefaultLayout) then begin 155 NewContainer1 := TCoolDock ConjoinForm.Create(nil);158 NewContainer1 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight); 156 159 NewContainer1.Show; 157 160 … … 161 164 ObjectInspectorForm.Show; 162 165 163 NewContainer2 := TCoolDock ConjoinForm.Create(nil);166 NewContainer2 := TCoolDockManager(DockPanel.DockManager).CreateContainer(alRight); 164 167 NewContainer2.Show; 165 168 ProjectManagerForm.ManualDock(NewContainer2.Panel, nil, alTop); … … 168 171 ToolPaletteForm.Show; 169 172 170 NewContainer1.ManualDock( Panel1);171 SourceEditorForm.ManualDock( Panel1);173 NewContainer1.ManualDock(DockPanel); 174 SourceEditorForm.ManualDock(DockPanel); 172 175 SourceEditorForm.Show; 173 NewContainer2.ManualDock( Panel1);176 NewContainer2.ManualDock(DockPanel); 174 177 175 178 DefaultLayout := TCoolDockLayout.Create; … … 220 223 CoolDockLayoutList1.Items.Add(NewLayout); 221 224 end else 222 TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Store; 225 TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.Items.IndexOf(ComboBox1.Text)]).Store; 226 CoolDockLayoutList1.SaveToFile(DockLayoutFileName); 223 227 CoolDockLayoutList1.PopulateStringList(ComboBox1.Items); 224 228 end; … … 232 236 begin 233 237 SourceEditorForm.Show; 238 end; 239 240 procedure TMainForm.AViewComponentTreeExecute(Sender: TObject); 241 begin 242 ComponentTree.Show; 234 243 end; 235 244
Note:
See TracChangeset
for help on using the changeset viewer.