Changeset 185 for Docking/CoolDocking/UCoolDockStyleRegions.pas
- Timestamp:
- Mar 10, 2011, 11:20:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockStyleRegions.pas
r184 r185 73 73 NewDockSite := DockSite.HostDockSite; 74 74 // FDockSite.ManualFloat(FDockSite.BoundsRect); 75 NewConjoinDockForm.ManualDock(NewDockSite); 75 76 AControl.ManualDock(NewConjoinDockForm.Panel, nil, InsertAt); 76 77 if DockSite is TForm then … … 79 80 if DockSite is TPanel then 80 81 DockSite.Parent.ManualDock(NewConjoinDockForm.Panel); 81 NewConjoinDockForm.ManualDock(NewDockSite);82 82 UpdateClientSize; 83 83 Exit; … … 114 114 Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 115 115 116 if TCoolDockManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; 116 TCoolDockManager(Manager).DockPanels.Remove(ClientPanel); 117 118 //if TCoolDockManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; 119 if TCoolDockManager(Manager).DockPanels.Count = 1 then begin 120 // Last removed control => Free parent if it is TCoolDockConjoinForm 121 if TCoolDockManager(Manager).DockSite.Parent is TCoolDockConjoinForm then 122 with TCoolDockConjoinForm(TCoolDockManager(Manager).DockSite.Parent) do begin 123 if Assigned(Parent) then begin 124 TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[0]).Control.ManualDock(HostDockSite); 125 end else TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 126 ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 127 Free; 128 end; 129 end; 117 130 inherited RemoveControl(Control); 118 131 end;
Note:
See TracChangeset
for help on using the changeset viewer.