Sign in Join
FPDoc Onlineexperiment

TDockTree.AdjustDockRect procedure

Member of TDockTreepublicIn unit Controls

Adjusts the zone rectangle for AControl.

Declaration

pascal
procedure AdjustDockRect(AControl: TControl; var ARect: TRect); virtual

Description

ARect initially describes the dockzone into which the control is docked. From that area the zone decoration is excluded, so that ARect describes the area reserved for the docked control.

AdjustDockRect is not part of the general docking model. It can implemented and used for any purpose in a dock tree manager. Most docking managers will replace it by a method with more arguments, that allow to identify the zone and its properties immediately.

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