[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TDockTree.AdjustDockRect

AdjustDockRect - adjust the docking rectangle for AControl

Declaration

Source position: controls.pp line 2229

public procedure TDockTree.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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.