Changeset 197 for Docking/CoolDocking/Managers/UCDManagerRegions.pas
- Timestamp:
- Mar 16, 2011, 7:47:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r195 r197 57 57 PanelHeader := TCDPanelHeader.Create(nil); 58 58 PanelHeader.Header.ManagerItem := Self; 59 PanelHeader.Header.OnMouseDown := DockPanelMouseDown; 60 PanelHeader.Header.Title.OnMouseDown := DockPanelMouseDown; 59 61 60 62 Splitter := TSplitter.Create(nil); 61 63 with Splitter do begin 64 Width := 3; 65 Height := 3; 62 66 //Parent := Panel; 63 67 //Color := clRed; … … 67 71 destructor TCDManagerRegionsItem.Destroy; 68 72 begin 73 PanelHeader.Parent := nil; 74 PanelHeader.Free; 75 Splitter.Parent := nil; 76 Splitter.Free; 77 Control.Parent := nil; 69 78 inherited Destroy; 70 79 end; … … 111 120 NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon); 112 121 NewItem.PanelHeader.Parent := DockSite; 122 NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption; 113 123 114 124 NewItem.Control := Control; … … 163 173 begin 164 174 ManagerItem := FindControlInPanels(Control); 165 if Assigned(ManagerItem) then 175 if Assigned(ManagerItem) then begin 166 176 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 177 end; 167 178 168 179 DockItems.Remove(ManagerItem);
Note:
See TracChangeset
for help on using the changeset viewer.