Popup menus within RTF controls
It is possible to display a popup menu within the RTF control at the exact point where the user issued a right mouse click. The program must contain a RightClick() event handler for the control. When the event handler is called the MouseX and MouseY properties are set to the location of the mouse click that triggered the event. The TrackPopup() menu method is then used to display the menu. The menu must have previously been created by the Menu Editor within the Forms designer. The following event handler could be used to display the menu Popup1 at the location of the last right mouse click:
-DEFEVENT Form1.rtfControl1.RightClick() .popup1.TrackPopup(..MouseX + ..Left, ..MouseY + ..Top) END EVENT