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

TDockTree.AdjustDockRect

Adjusts the zone rectangle for AControl.

Declaration

Source position: controls.pp line 2632

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.


Version 4.0 Generated 2025-05-03 Home