Changeset 355 for Docking/CoolDocking/Demo/Testing/UMainForm.pas
- Timestamp:
- Apr 27, 2012, 8:34:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/Testing/UMainForm.pas
r354 r355 27 27 MenuItem3: TMenuItem; 28 28 MenuItem4: TMenuItem; 29 PageControl1: TPageControl;30 29 Panel1: TPanel; 31 TabControl1: TTabControl;32 TabSheet1: TTabSheet;33 TabSheet2: TTabSheet;34 TabSheet3: TTabSheet;35 TabSheet4: TTabSheet;36 30 procedure Button1Click(Sender: TObject); 37 31 procedure Button2Click(Sender: TObject); … … 43 37 procedure PageControl1Change(Sender: TObject); 44 38 private 39 procedure DockSiteShowExecute(Sender: TObject); 40 procedure DockSiteHideExecute(Sender: TObject); 45 41 public 46 42 FormIndex: Integer; … … 79 75 NewDockForm.ManualDock(Form1); 80 76 TCDManager(Panel1.DockManager).DockStyle := dsTabs; 77 NewDockForm.ManualDock(Panel1); 81 78 (* ConjoinedDockForm1 := TCDManager(Panel1.DockManager).CreateConjoinForm; 82 79 ConjoinedDockForm1.Name := 'Model';; … … 109 106 end; 110 107 108 procedure TMainForm.DockSiteShowExecute(Sender: TObject); 109 begin 110 if Sender is TControl then 111 DebugLog(TControl(Sender).Name + ' Show'); 112 end; 113 114 procedure TMainForm.DockSiteHideExecute(Sender: TObject); 115 begin 116 if Sender is TControl then 117 DebugLog(TControl(Sender).Name + ' Hide'); 118 end; 119 111 120 function TMainForm.NewDockForm: TDockForm; 112 121 begin … … 117 126 Result.Caption := Result.Name; 118 127 Result.Memo1.Text := Result.Name; 128 TCDManager(Result.DockManager).OnDockSiteHide := DockSiteHideExecute; 129 TCDManager(Result.DockManager).OnDockSiteShow := DockSiteShowExecute; 119 130 //Result.DragKind := dkDock; 120 131 //Result.DragMode := dmAutomatic;
Note:
See TracChangeset
for help on using the changeset viewer.