Changeset 217 for Docking/CoolDocking/Managers
- Timestamp:
- Mar 22, 2011, 11:32:28 AM (14 years ago)
- Location:
- Docking/CoolDocking/Managers
- Files:
-
- 3 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); -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r216 r217 254 254 NewItem.IconImage.Picture.Assign((Control as TForm).Icon); 255 255 256 NewItem.Control := Control;256 NewItem.Control := TWinControl(Control); 257 257 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 258 258 //AControl.Parent := NewItem.ClientAreaPanel; … … 272 272 if Assigned(ManagerItem) then begin 273 273 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 274 end 274 end; //else raise Exception.Create(Format('Control %s not found in DockItems', [Control.Name])); 275 275 276 276 DockItems.Remove(ManagerItem); -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r208 r217 246 246 C.Align := alClient; 247 247 C.Parent := HeaderPanel.ControlPanel; 248 HeaderPanel.Header.Title.Caption := C.Caption;249 248 //AutoHide.Control.Align := alCustom; 250 249 //Pos := DockSite.ClientToScreen(Pos); … … 328 327 NewItem.IconImage.Picture.Assign((Control as TForm).Icon); 329 328 330 NewItem.Control := Control;329 NewItem.Control := TWinControl(Control); 331 330 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 332 331 //AControl.Parent := NewItem.ClientAreaPanel;
Note:
See TracChangeset
for help on using the changeset viewer.