Changeset 217 for Docking/CoolDocking/Managers/UCDManagerRegions.pas
- Timestamp:
- Mar 22, 2011, 11:32:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r216 r217 90 90 PanelHeader.Header.ManagerItem := Self; 91 91 PanelHeader.Header.OnMouseDown := DockPanelMouseDown; 92 PanelHeader.Header.Title.OnMouseDown := DockPanelMouseDown;93 92 PanelHeader.Header.Icon.OnMouseDown := DockPanelMouseDown; 94 93 … … 123 122 begin 124 123 inherited SetHeaderPos(AValue); 125 case AValue of 124 if Assigned(DockSite.Parent) then 125 TCDManager(DockSite.Parent.DockManager).UpdateClientSize; 126 (* case AValue of 126 127 hpBottom, hpTop: FDockDirection := ddVertical; 127 128 hpLeft, hpRight: FDockDirection := ddHorizontal; 128 end; 129 end;*) 129 130 end; 130 131 … … 172 173 NewItem.PanelHeader.Parent := DockSite; 173 174 174 NewItem.Control := Control;175 NewItem.Control := TWinControl(Control); 175 176 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 176 177 Control.Parent := NewItem.PanelHeader.ControlPanel; … … 199 200 // Direction change, create conjoin form 200 201 NewConjoinDockForm := CreateContainer(InsertAt); 201 FreeParentIfEmpty := False; 202 for I := DockSite.DockClientCount - 1 downto 0 do begin 203 DockSite.DockClients[I].ManualDock(NewConjoinDockForm); 202 try 203 FreeParentIfEmpty := False; 204 for I := DockSite.DockClientCount - 1 downto 0 do begin 205 DockSite.DockClients[I].ManualDock(NewConjoinDockForm); 206 end; 207 finally 208 FreeParentIfEmpty := True; 204 209 end; 205 FreeParentIfEmpty := True;206 210 NewConjoinDockForm.ManualDock(DockSite); 207 211 Control.ManualDock(DockSite, nil, InsertAt); … … 308 312 if Assigned(TWinControl(Control).DockManager) then 309 313 PanelHeader.Header.Visible := TCDManager(TWinControl(Control).DockManager).HeaderVisible; 310 PanelHeader.Header.Title.Caption := TForm(Control).Caption;311 314 PanelHeader.Visible := Control.Visible; 312 315 Paint(Self);
Note:
See TracChangeset
for help on using the changeset viewer.