How to modify or turn off Popup menu in TMS Memo


How to modify or turn off the popup menu in TMS Memo?
I want it to be read-only but I didn't set read-only flag to be true because I'd like to have keydown event.
When I set read-only property and keydown event would not be triggered.
So, I change "Key" and "KeyChar" values to be zero in KeyDown event to make it read-only.
But after right click the mouse, there is still popup menu to delete text.

How to disable "Delete" item in popup menu or just disable it?


You can use the following method to clear out the right-click context menu:


Thanks! It works.