Changeset 47 for DockManager/Lazarus/Demo/UMainForm.pas
- Timestamp:
- Sep 17, 2010, 12:55:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus/Demo/UMainForm.pas
r46 r47 16 16 Button1: TButton; 17 17 Panel1: TPanel; 18 TabControl1: TTabControl; 18 19 procedure Button1Click(Sender: TObject); 19 20 procedure FormCreate(Sender: TObject); … … 49 50 procedure TMainForm.FormShow(Sender: TObject); 50 51 var 51 DockForm1: TDockForm; 52 DockForm2: TDockForm; 53 DockForm3: TDockForm; 52 ConjoinedDockForm1: TConjoinDockForm; 53 ConjoinedDockForm2: TConjoinDockForm; 54 54 begin 55 55 NewDockForm.ManualDock(Panel1); 56 56 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; 59 67 end; 60 68
Note:
See TracChangeset
for help on using the changeset viewer.