Changeset 205 for Docking/CoolDocking/Demo/IDE/UMainForm.pas
- Timestamp:
- Mar 17, 2011, 2:17:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r198 r205 103 103 procedure FormShow(Sender: TObject); 104 104 public 105 NewFileIndex: Integer; 106 SourceCodeContainer: TCDConjoinForm; 105 107 procedure InitDefaultDockLayout; 106 108 end; … … 176 178 ToolPaletteForm.Show; 177 179 180 SourceCodeContainer := TCDManager(DockPanel.DockManager).CreateContainer(alRight); 181 TCDManager(SourceCodeContainer.DockManager).DockStyle := dsTabs; 182 TCDManager(SourceCodeContainer.DockManager).HeaderPos := hpTop; 183 178 184 NewContainer1.ManualDock(DockPanel); 179 185 NewContainer1.Show; 180 SourceEditorForm.ManualDock(DockPanel);181 SourceEditorForm.Show;186 // SourceCodeContainer.ManualDock(DockPanel); 187 // SourceCodeContainer.Show; 182 188 NewContainer2.ManualDock(DockPanel); 183 189 NewContainer2.Show; … … 243 249 244 250 procedure TMainForm.ANewFileExecute(Sender: TObject); 245 begin 246 SourceEditorForm.Show; 251 var 252 NewFile: TSourceEditorForm; 253 begin 254 Application.CreateForm(TSourceEditorForm, NewFile); 255 //NewFile := TSourceEditorForm.Create(nil); 256 Inc(NewFileIndex); 257 NewFile.Caption := 'Unit ' + IntToStr(NewFileIndex); 258 NewFile.ManualDock(SourceCodeContainer); 259 NewFile.Show; 247 260 end; 248 261
Note:
See TracChangeset
for help on using the changeset viewer.