API:FMX.Memo.Style.TStyledMemo.ShowContextMenu
Delphi
function ShowContextMenu(const ScreenPosition: TPointF): Boolean; override;
C++
virtual bool __fastcall ShowContextMenu(const System::Types::TPointF &ScreenPosition);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Memo.Style.pas FMX.Memo.Style.hpp |
FMX.Memo.Style | TStyledMemo |
Description
Displays the PopupMenu context menu of this control on the specified ScreenPosition
screen point.
FMX.Memo.Style.TStyledMemo.ShowContextMenu inherits from FMX.Controls.TControl.ShowContextMenu. All content below this line refers to FMX.Controls.TControl.ShowContextMenu.
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
.