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

TWinControl.CustomAlignPosition

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

Declaration

Source position: controls.pp line 2005

protected procedure TWinControl.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 placed.

AlignRect

  

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

AlignInfo

  

Information about the current align process

Description

The given coordinates take into account the anchoring of AControl.

The handler updates the coordinates as required.

See also

TAlignInsertBeforeEvent

  

Type of an OnAlignInsertBefore handler.

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