TDockTree.PositionDockRect procedure
Determines the DockRect while dragging a control over the docksite.
Declaration
procedure PositionDockRect(AClient: TControl; DropCtl: TControl;
DropAlign: TAlign; var DockRect: TRect)
; overrideDescription
This method updates DockRect to provide visual feedback when a control is dragged over the docksite. The initial DragDockObject.DockRect spans the entire DockSite.
The Delphi-compatible version only can use the parameters determined by the default processing in the docksite.
The Lazarus version can update the DockObject with better-suited parameters. A DockManager here can implement any algorithm for the placement of a dropped control. The default implementation calls the Delphi compatible version. When you override the Lazarus version, you may have to determine the dock sibling and DropAlign again, when the default determination (in TControl and TWinControl) is inappropriate.
This description is the one of Controls.TDockManager.PositionDockRect.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
