Sign in Join
FPDoc Onlineexperiment

TDragDockObject.InitDock procedure

Member of TDragDockObjectprotectedIn unit Controls

Initializes the dragging coordinates.

Declaration

pascal
procedure InitDock(APosition: TPoint); virtual

Description

Determines the hotspot offset for adjusting the floating DockRect. Since the undocked extent of the control doesn't change while dragging, we fix the hotspot offset here.

Usage:

OffsetRect(DockRect, FDockOffset);

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