Changeset 42 for DockManager/Lazarus/UCustomDockManager.pas
- Timestamp:
- Sep 16, 2010, 10:18:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus/UCustomDockManager.pas
r41 r42 91 91 R: TRect; 92 92 begin 93 for I := 0 to FDockSite.ControlCount - 1 do94 95 Control := FDockSite.Controls[I];96 97 98 99 100 101 102 103 104 93 CloseButton.Visible := FDockSite.DockClientCount > 0; 94 for I := 0 to FDockSite.DockClientCount - 1 do begin 95 Control := FDockSite.DockClients[I]; 96 if Control.Visible and (Control.HostDockSite = FDockSite) then 97 begin 98 R := Control.BoundsRect; 99 //Control.SetBounds(0, GrabberSize, FDockSite.Width - Control.Left, 100 // FDockSite.Height - Control.Top); 101 //Canvas.FillRect(R); 102 DrawGrabber(FDockPanel.Canvas, Control); 103 end; 104 end; 105 105 end; 106 106 … … 168 168 begin 169 169 inherited InsertControl(ADockObject); 170 FDockPanel.Repaint; 170 171 end; 171 172 … … 173 174 DropCtl: TControl); 174 175 begin 176 inherited; 175 177 end; 176 178 … … 239 241 procedure TCustomDockManager.RemoveControl(Control: TControl); 240 242 begin 243 inherited; 244 //FDockPanel.Invalidate; 245 FDockSite.Invalidate; 241 246 end; 242 247
Note:
See TracChangeset
for help on using the changeset viewer.