Changeset 42 for DockManager/Lazarus
- Timestamp:
- Sep 16, 2010, 10:18:35 AM (14 years ago)
- Location:
- DockManager/Lazarus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DockManager/Lazarus/Demo
- Property svn:ignore
-
old new 1 1 lib 2 Demo.exe
-
- Property svn:ignore
-
DockManager/Lazarus/Demo/UMainForm.lfm
r41 r42 20 20 end 21 21 object Panel1: TPanel 22 Left = 20 23 Height = 179 24 Top = 45 25 Width = 292 22 Left = 0 23 Height = 200 24 Top = 40 25 Width = 320 26 Align = alBottom 26 27 Anchors = [akTop, akLeft, akRight, akBottom] 28 BevelOuter = bvNone 27 29 DockSite = True 28 30 TabOrder = 1 -
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.