FMX.Forms.TCustomPopupForm.Placement

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property Placement: TPlacement read FPlacement write SetPlacement;

C++

__property Fmx::Controls::TPlacement Placement = {read=FPlacement, write=SetPlacement, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCustomPopupForm


説明

PlacementRectangle プロパティまたは PlacementTarget プロパティで指定された四角形、画面、マウス(ポインティング デバイス)位置のいずれかを基準として、TCustomPopupForm がどのように相対的に配置されるかを指定します。

TPlacement には、Placement の取り得る値が定義されています。

また、TPlacement では、画面の境界から外にはみ出した場合の TCustomPopupForm の動作も指定します。デフォルト値は Bottom です。

次の図は、TopCenter 値の場合のデモです。

画面上の配置の基準となる四角形

この図で、ScreenPlacementRect[Show popup]ボタンの明るい赤紫色の四角形です。

PlacementPlacementTargetPlacementRectangle を使用すると、TCustomPopupForm の配置を設定できます。

関連項目