Changeset 46 for DockManager/Lazarus/Demo/UMainForm.pas
- Timestamp:
- Sep 17, 2010, 8:02:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus/Demo/UMainForm.pas
r44 r46 18 18 procedure Button1Click(Sender: TObject); 19 19 procedure FormCreate(Sender: TObject); 20 procedure FormDestroy(Sender: TObject); 20 21 procedure FormShow(Sender: TObject); 21 22 private … … 23 24 public 24 25 FormIndex: Integer; 25 LastDockForm: TDockForm;26 DockForms: TList; 26 27 function NewDockForm: TDockForm; 27 28 end; … … 38 39 procedure TMainForm.FormCreate(Sender: TObject); 39 40 begin 41 DockForms := TList.Create; 42 end; 43 44 procedure TMainForm.FormDestroy(Sender: TObject); 45 begin 46 DockForms.Free; 40 47 end; 41 48 … … 46 53 DockForm3: TDockForm; 47 54 begin 48 DockForm1 := NewDockForm; 49 DockForm1.ManualDock(Panel1); 50 51 DockForm2 := NewDockForm; 52 DockForm2.ManualDock(Panel1); 53 54 DockForm3 := NewDockForm; 55 DockForm3.ManualDock(DockForm2); 55 NewDockForm.ManualDock(Panel1); 56 NewDockForm.ManualDock(Panel1, nil, alBottom); 57 NewDockForm.ManualDock(TForm(DockForms[1]).Parent); 58 NewDockForm.ManualDock(TForm(DockForms[1]).Parent); 56 59 end; 57 60 … … 67 70 Inc(FormIndex); 68 71 Result.Show; 72 DockForms.Add(Result); 69 73 end; 70 74
Note:
See TracChangeset
for help on using the changeset viewer.