FMX.Forms.TCustomPopupForm.Placement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Placement: TPlacement read FPlacement write SetPlacement;

C++

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

Properties

Type Visibility Source Unit Parent
property public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCustomPopupForm

Description

Gets or sets how the TCustomPopupForm is positioned relative to rectangles specified by the PlacementRectangle or PlacementTarget properties, relative to the screen, or relative to the mouse (pointing device) position.

TPlacement defines possible values of Placement.

TPlacement also specifies the behavior of the TCustomPopupForm, when it overlaps screen boundaries. The default value is Bottom.

This figure demonstrates the TopCenter value.

Screen Placement Rectangle

In the figure, ScreenPlacementRect is the colored Fuchsia rectangle of the Show popup button.

Use Placement, PlacementTarget, and PlacementRectangle to set the positioning of TCustomPopupForm.

See Also