Ignore:
Timestamp:
Mar 17, 2011, 2:17:17 PM (14 years ago)
Author:
george
Message:
  • Modified: Enhanced tabs popup manager.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Demo/IDE/UMainForm.pas

    r198 r205  
    103103    procedure FormShow(Sender: TObject);
    104104  public
     105    NewFileIndex: Integer;
     106    SourceCodeContainer: TCDConjoinForm;
    105107    procedure InitDefaultDockLayout;
    106108  end;
     
    176178    ToolPaletteForm.Show;
    177179
     180    SourceCodeContainer := TCDManager(DockPanel.DockManager).CreateContainer(alRight);
     181    TCDManager(SourceCodeContainer.DockManager).DockStyle := dsTabs;
     182    TCDManager(SourceCodeContainer.DockManager).HeaderPos := hpTop;
     183
    178184    NewContainer1.ManualDock(DockPanel);
    179185    NewContainer1.Show;
    180     SourceEditorForm.ManualDock(DockPanel);
    181     SourceEditorForm.Show;
     186//    SourceCodeContainer.ManualDock(DockPanel);
     187//    SourceCodeContainer.Show;
    182188    NewContainer2.ManualDock(DockPanel);
    183189    NewContainer2.Show;
     
    243249
    244250procedure TMainForm.ANewFileExecute(Sender: TObject);
    245 begin
    246   SourceEditorForm.Show;
     251var
     252  NewFile: TSourceEditorForm;
     253begin
     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;
    247260end;
    248261
Note: See TracChangeset for help on using the changeset viewer.