Vcl.Controls.TAlignPositionEvent

提供:RAD Studio API Documentation

Delphi

TAlignPositionEvent = procedure(Sender: TWinControl; Control: TControl;
var NewLeft, NewTop, NewWidth, NewHeight: Integer;
var AlignRect: TRect; AlignInfo: TAlignInfo) of object;

C++

typedef void __fastcall (__closure *TAlignPositionEvent)(TWinControl* Sender, TControl* Control, int &NewLeft, int &NewTop, int &NewWidth, int &NewHeight, System::Types::TRect &AlignRect, const TAlignInfo &AlignInfo);

プロパティ

種類 可視性 ソース ユニット 親
type
typedef
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls


説明

TAlignPositionEvent は、OnAlignPosition イベントの関数型です。

CustomAlignPosition は、OnAlignPosition イベントのトリガになります。 OnAlignPosition は、alCustom の Align プロパティを持つ子コントロールがアラインメントされたときに発生します。 これによりアラインメント パラメータが指定され、コントロールの配置場所が決まります。

TAlignPositionEvent は、次のパラメータを保持しています。



パラメータ 意味

Sender

親コントロール。

NewLeft | NewTop | NewWidth | NewHeight

子コントロールの場所とサイズ。コンテナのサイズとそのコントロールのAnchors TControl_Anchors の制約で決まります。 OnAlignPosition は、これらの値を変更して、コントロールの配置移動することができます。

AlignRect

コントロールが配置されるクライアント領域です。 OnAlignPosition は、この値を変更できます。

AlignInfo

TAlignInfo 内の配置情報。



関連項目