FMX.Types.IControl.ShowContextMenu

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ShowContextMenu(const ScreenPosition: TPointF): Boolean;

C++

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

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types IControl

Description

Declares a method to display the context menu on a specified screen point.

Implementations of ShowContextMenu display the PopupMenu context menu on the specified ScreenPosition screen point.

Implementations of ShowContextMenu, for example in the TControl class, return True if a context menu was shown. Otherwise, ShowContextMenu returns False. Implementations of ShowContextMenu can show some default context menu if PopupMenu = nil.

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

See Also