Vcl.ActnMenus.TCustomActionMainMenuBar.CustomAlignPosition
Delphi
procedure CustomAlignPosition(Control: TControl; var NewLeft: Integer;
var NewTop: Integer; var NewWidth: Integer; var NewHeight: Integer;
var AlignRect: TRect; AlignInfo: TAlignInfo); override;
C++
virtual void __fastcall CustomAlignPosition(Vcl::Controls::TControl* Control, int &NewLeft, int &NewTop, int &NewWidth, int &NewHeight, Winapi::Windows::TRect &AlignRect, const Vcl::Controls::TAlignInfo &AlignInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ActnMenus.pas Vcl.ActnMenus.hpp |
Vcl.ActnMenus | TCustomActionMainMenuBar |
Description
Returns the aligned position of a custom aligned child control.
Vcl.ActnMenus.TCustomActionMainMenuBar.CustomAlignPosition inherits from Vcl.ActnCtrls.TCustomActionDockBar.CustomAlignPosition. All content below this line refers to Vcl.ActnCtrls.TCustomActionDockBar.CustomAlignPosition.
Returns the aligned position of a custom aligned child control.
CustomAlignPosition determines the specific position of custom aligned child controls. CustomAlignPosition is called once for each child control with an Align property of alCustom
, in an order previously determined by calls to CustomAlignInsertBefore.
These are the parameters:
Control | The child control being placed |
---|---|
NewLeft | NewTop | NewWidth | NewHeight |
Location and size of the child control, as determined by the container's size and the Anchors constraints for the control. CustomAlignPosition can modify these values to reposition the control. |
AlignRect |
The client area in which the control is aligned. CustomAlignPosition can modify this value. |
AlignInfo |
Alignment information in a TAlignInfo. |