Sign in Join
FPDoc Onlineexperiment

TWinControl.CustomAlignPosition procedure

Member of TWinControlprotectedIn unit Controls

Returns the aligned position for a custom-aligned child control, using the OnAlignPosition event handler.

Declaration

pascal
procedure CustomAlignPosition(AControl: TControl; 
 var ANewLeft: Integer; 
 var ANewTop: Integer; 
 var ANewWidth: Integer; 
 var ANewHeight: Integer; 
 var AlignRect: TRect; 
 AlignInfo: TAlignInfo); virtual

Arguments

AControl

The control to be repositioned / resized.

ANewLeft
ANewTop
ANewWidth
ANewHeight
AlignRect

The remaining client area, within which the control can be placed.

AlignInfo

Information about the current align process.

Description

The derived coordinates take into account the anchoring for AControl.

The OnAlignPosition handler can update the coordinates as required.

See also

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