Skip to main content
Table of Contents

TTMSFNCPopupMenu.Popup Method

Shows the menu at the specified screen coordinates.

API unit family: TMSFNCPopupMenu Declaring type: TTMSFNCPopupMenu Inherited from: TTMSFNCCustomPopupMenu

Overloads

Overload 1

Shows the menu at the specified screen coordinates.

FMX.TMSFNCPopupMenu.hppPascalC++
procedure Popup(X, Y: Single); overload; override;
virtual void __fastcall Popup(float X, float Y)/* overload */;

Parameters

Name Description
X Horizontal screen position in pixels.
Y Vertical screen position in pixels.

Overload 2

Shows the menu at the specified screen coordinates.

FMX.Types.hppPascalC++
procedure Popup(X, Y: Integer); overload; override;
virtual void __fastcall Popup(float X, float Y) = 0;

Parameters

Name Description
X Horizontal screen position in pixels.
Y Vertical screen position in pixels.

Overload 3

Shows the menu positioned relative to the specified control using the given placement strategy.

FMX.TMSFNCPopupMenu.hppPascalC++
procedure Popup(APopupControl: TControl; APopupMenuPlacement: TTMSFNCPopupPlacement); reintroduce; overload;
HIDESBASE void __fastcall Popup(Fmx::Controls::TControl* APopupControl, TTMSFNCPopupPlacement APopupMenuPlacement)/* overload */;

Parameters

Name Description
APopupControl Control to position the menu relative to.
APopupMenuPlacement Placement strategy that determines where the menu appears relative to the control.