Sign in Join
FPDoc Onlineexperiment

TWinControl.CustomAlignInsertBefore function

Member of TWinControlprotectedIn unit Controls

Indicates whether the specified controls were custom-aligned using the OnAlignInsertBefore handler.

Declaration

pascal
function CustomAlignInsertBefore(AControl1: TControl; 
 AControl2: TControl): Boolean; virtual

Description

CustomAlignInsertBefore is a Boolean function which indicates whether the specified controls need to be custom-aligned using the OnAlignInsertBefore handler. CustomAlignInsertBefore is called (circuitously) when auto-sizing is performed in the DoAutoSize method, and the Align property in the control is alCustom.

AControl1 and AControl2 are child controls examined to determine the alignment order in the parent control.

The return value is False if OnAlignInsertBefore has not been assigned in the control, or when the controls do not require custom alignment. True indicates that the controls are swapped in the alignment order.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.