Ignore:
Timestamp:
Mar 16, 2011, 7:47:27 AM (14 years ago)
Author:
george
Message:
  • Modified: Docked client header redone to delphi visual style.
File:
1 edited

Legend:

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

    r189 r197  
    1515
    1616const
     17  DefaultLayoutName = 'Default Layout';
    1718  DockLayoutFileName = 'Layout.xml';
    1819
     
    2324  TMainForm = class(TForm)
    2425  published
     26    AResetDefaultLayout: TAction;
    2527    AViewComponentTree: TAction;
    2628    AExit: TAction;
     
    6567    MenuItem26: TMenuItem;
    6668    MenuItem27: TMenuItem;
     69    MenuItem28: TMenuItem;
    6770    MenuItem9: TMenuItem;
    6871    MenuItem8: TMenuItem;
     
    8386    procedure AExitExecute(Sender: TObject);
    8487    procedure ANewFileExecute(Sender: TObject);
     88    procedure AResetDefaultLayoutExecute(Sender: TObject);
    8589    procedure AViewComponentTreeExecute(Sender: TObject);
    8690    procedure AViewThreadStatusExecute(Sender: TObject);
     
    148152
    149153procedure TMainForm.InitDefaultDockLayout;
    150 const
    151   DefaultLayoutName = 'Default Layout';
    152154var
    153155  NewContainer1: TCDConjoinForm;
     
    241243end;
    242244
     245procedure TMainForm.AResetDefaultLayoutExecute(Sender: TObject);
     246var
     247  DefaultLayout: TCDLayout;
     248begin
     249  DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName);
     250  if Assigned(DefaultLayout) then
     251    CoolDockLayoutList1.Items.Remove(DefaultLayout);
     252  InitDefaultDockLayout;
     253end;
     254
    243255procedure TMainForm.AViewComponentTreeExecute(Sender: TObject);
    244256begin
Note: See TracChangeset for help on using the changeset viewer.