RichTextEdit controls
When PopMenu is enabled, the user has access to a pop-up menu by clicking the right mouse button on the control. The pop-up menu allows the user to cut and paste, insert a file, and select formatting properties.
The pop-up menu can be disabled by the user at runtime from the Properties item on the menu itself.
Select the Pop-up Menu check box on the Document tab page of the control’s Properties view.
The PopMenu property takes a boolean value.
The following line enables the pop-up menu for a RichTextEdit:
rte_1.PopMenu = TRUE