TWinControl.CustomAlignPosition procedure
Returns the aligned position for a custom-aligned child control, using the
OnAlignPosition event handler.
Declaration
procedure CustomAlignPosition(AControl: TControl;
var ANewLeft: Integer;
var ANewTop: Integer;
var ANewWidth: Integer;
var ANewHeight: Integer;
var AlignRect: TRect;
AlignInfo: TAlignInfo); virtualArguments
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.
