FMX.Controls.TControl.ShowContextMenu

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ShowContextMenu(const ScreenPosition: TPointF): Boolean; virtual;

C++

virtual bool __fastcall ShowContextMenu(const System::Types::TPointF &ScreenPosition);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

Displays the PopupMenu context menu of this control on the specified ScreenPosition screen point.

ShowContextMenu returns True if PopupMenu was successfully displayed. Otherwise, ShowContextMenu returns False.

To set or get a context (pop-up) menu for the current control, use the PopupMenu property.

Descendants can override this method. For example, descendants can show a default context menu if PopupMenu = nil.

See Also