TMSFMXMemo Override Context Menu

How do I either turn off, or override (preferably) the context menu in TMSFMXMemo component?

I am using some custom algorithms for procedures such as selecting a word. The context menu that pops up on a right-click has a select-word option which will be confusing to the user. I am binding my algorithm to both a menu command and a short cut key. Ideally I will create my own context menu, which means a full override of the built-in. But simply disabling the context menu will work for now.

Hi, 


You can replace the context menu with the following code:

var
  mnu: TMenuItem;
begin
  TMSFMXMemo1.MemoContext.Free;
  TMSFMXMemo1.MemoContext := TPopupMenu.Create(TMSFMXMemo1);
  TMSFMXMemo1.MemoContext.PopupComponent := TMSFMXMemo1;
  mnu := TMenuItem.Create(TMSFMXMemo1.MemoContext);
  mnu.Text := 'Hello';
  TMSFMXMemo1.MemoContext.AddObject(mnu);

Kind Regards, 
Pieter