Ignore:
Timestamp:
Sep 17, 2010, 12:55:46 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Zkušební podpora pro záložky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DockManager/Lazarus/Demo/UMainForm.pas

    r46 r47  
    1616    Button1: TButton;
    1717    Panel1: TPanel;
     18    TabControl1: TTabControl;
    1819    procedure Button1Click(Sender: TObject);
    1920    procedure FormCreate(Sender: TObject);
     
    4950procedure TMainForm.FormShow(Sender: TObject);
    5051var
    51   DockForm1: TDockForm;
    52   DockForm2: TDockForm;
    53   DockForm3: TDockForm;
     52  ConjoinedDockForm1: TConjoinDockForm;
     53  ConjoinedDockForm2: TConjoinDockForm;
    5454begin
    5555  NewDockForm.ManualDock(Panel1);
    5656  NewDockForm.ManualDock(Panel1, nil, alBottom);
    57   NewDockForm.ManualDock(TForm(DockForms[1]).Parent);
    58   NewDockForm.ManualDock(TForm(DockForms[1]).Parent);
     57  ConjoinedDockForm1 := TCustomDockManager(TForm(DockForms[1]).DockManager).CreateContainer;
     58  ConjoinedDockForm1.Name := 'Model';;
     59  ConjoinedDockForm1.ManualDock(Panel1);
     60  TCustomDockManager(ConjoinedDockForm1.Panel.DockManager).DockStyle := dsTabs;
     61  NewDockForm.ManualDock(ConjoinedDockForm1.Panel);
     62  NewDockForm.ManualDock(ConjoinedDockForm1.Panel);
     63  NewDockForm.ManualDock(TForm(DockForms[0]));
     64  NewDockForm.ManualDock(TForm(DockForms[0]));
     65  NewDockForm.ManualDock(TForm(DockForms[0]));
     66//  TCustomDockManager(TDockForm(DockForms[0]).DockManager).DockStyle := dsTabs;
    5967end;
    6068
Note: See TracChangeset for help on using the changeset viewer.