Handling Popup Menu In Live Spell Checking

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Handling Popup Menu In Live Spell Checking

Post by DickBryant »

Hi Sergey,

I'm adding the Live Spell Checking to my application and have the problem that I have a fairly complex TRVActionsPopup that is normally used for my editor. Is there a way to suppress this Popup and substitute a constructed Popup such as the one you use in the "Simple" Demo of the Addict3 TRV Parser ONLY when the user right-clicks on a 'red-underlined' word?

TIA,

Dick
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can in RVAPopupMenu.OnPopup event delete all items from RVAPopupMenu (items in this menu are readded on each popup, and OnPopup occurs after readding). Then, in this event, you can add your items in this menu.
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

OK, thanks. Didn't realize that the PopUp was re-built on each call. This will make it easy to transfer the code from the example.
Post Reply