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

TAlignPositionEvent

Type of an OnAlignPosition handler.

Declaration

Source position: controls.pp line 1910

type TAlignPositionEvent = procedure(

  Sender: TWinControl;

  Control: TControl;

  var NewLeft: Integer;

  var NewTop: Integer;

  var NewWidth: Integer;

  var NewHeight: Integer;

  var AlignRect: TRect;

  AlignInfo: TAlignInfo

) of object;

Arguments

Sender

  

The Parent control

Control

  

The control to place.

AlignRect

  

The remaining ClientRect

AlignInfo

  

Information about the current align process

Description

The handler positions Control by changing the given coordinates.

See also

TWinControl.CustomAlignPosition

  

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

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