Changeset 184 for Docking/CoolDocking/UCoolDockStyleRegions.pas
- Timestamp:
- Mar 10, 2011, 9:57:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockStyleRegions.pas
r183 r184 73 73 NewDockSite := DockSite.HostDockSite; 74 74 // FDockSite.ManualFloat(FDockSite.BoundsRect); 75 AControl.ManualDock(NewConjoinDockForm.Panel, nil, InsertAt); 76 if DockSite is TForm then 77 DockSite.ManualDock(NewConjoinDockForm.Panel) 78 else 79 if DockSite is TPanel then 80 DockSite.Parent.ManualDock(NewConjoinDockForm.Panel); 75 81 NewConjoinDockForm.ManualDock(NewDockSite); 76 DockSite.ManualDock(NewConjoinDockForm.Panel); 77 AControl.ManualDock(NewConjoinDockForm.Panel, nil, InsertAt); 82 UpdateClientSize; 78 83 Exit; 79 84 end; … … 83 88 with NewPanel do begin 84 89 Parent := TCoolDockManager(Manager).DockSite; 85 OwnerDockManager := Self;90 OwnerDockManager := Manager; 86 91 if DockStyle = dsList then Visible := True; 87 92 Header.PopupMenu := TCoolDockManager(Manager).PopupMenu; … … 103 108 104 109 procedure TCoolDockStyleRegions.RemoveControl(Control: TControl); 105 begin 110 var 111 ClientPanel: TCoolDockClientPanel; 112 begin 113 ClientPanel := TCoolDockManager(Manager).FindControlInPanels(Control); 114 Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 115 106 116 if TCoolDockManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; 107 117 inherited RemoveControl(Control); … … 174 184 Splitter.Parent := TCoolDockManager(Manager).DockSite; 175 185 Splitter.Align := BaseAlign; 176 Splitter.Visible := True;186 Splitter.Visible := I < (DockPanels.Count - 1); 177 187 178 188
Note:
See TracChangeset
for help on using the changeset viewer.