FMX.Forms.TCustomPopupForm.PlacementRectangle
Delphi
property PlacementRectangle: TBounds read FPlacementRectangle write SetPlacementRectangle;
C++
__property Fmx::Types::TBounds* PlacementRectangle = {read=FPlacementRectangle, write=SetPlacementRectangle};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCustomPopupForm |
Description
Gets or sets a rectangle, relative to which the TCustomPopupForm is positioned.
Screen coordinates of PlacementRectangle are calculated relative to PlacementTarget (if specified). Otherwise, relative to the top left corner of the screen. The following rules are used:
- If PlacementRectangle is not specified (width or height equals to zero
0
), but PlacementTarget is specified, then the coordinates and size of PlacementTarget are used. - If neither PlacementRectangle nor PlacementTarget are specified, then adhering of the top left corner of the form is implemented to the mouse cursor.
Use Placement, PlacementTarget, and PlacementRectangle to set the target origin and the alignment point of the TCustomPopupForm.