Sign in Join
FPDoc Onlineexperiment

TCustomButtonPanel.CustomAlignPosition procedure

Member of TCustomButtonPanelprotectedIn unit ButtonPanel

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); override

Description

The derived coordinates take into account the anchoring for AControl.

The OnAlignPosition handler can update the coordinates as required.

This description is the one of Controls.TWinControl.CustomAlignPosition.

See also

  • TAlignInsertBeforeEvent

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