Advertisement
D98rolb

DoDock

Dec 12th, 2023
1,650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.53 KB | Software | 0 0
  1. procedure TControl.DoDock(NewDockSite: TWinControl; var ARect: TRect);
  2. begin
  3.   { Erase TControls before UpdateboundsRect modifies position }
  4.   if not (Self is TWinControl) then InvalidateControl(Visible, False);
  5.   if Parent <> NewDockSite then
  6.     UpdateBoundsRect(ARect) else
  7.     BoundsRect := ARect;
  8.  
  9. { The last line is the problem
  10. Before call width is 154 and height is 774.
  11. After call that set parent to nil
  12. is width 249 and height is 554}
  13.   if (NewDockSite = nil) or (NewDockSite = NullDockSite) then Parent := nil;  
  14. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement