Sign in Join
FPDoc Onlineexperiment

TDragDockObject.AdjustDockRect procedure

Member of TDragDockObjectprotectedIn unit Controls

Adjust the DockRect relative to the dragging hotspot (DockOffset).

Declaration

pascal
procedure AdjustDockRect(ARect: TRect); virtual

Arguments

ARect

Not used; please ignore it.

Description

The parameter type is bad, should be var. Ignore it please.

The default implementation adjusts the stored FDockRect, by DockOffset. This adjustment will make the DockRect appear right over the control, when dragging starts, regardless of where the user clicked onto the control.

You will rarely need to override this method, since the DockRect is adjusted by every target site's DockManager later.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.