Page 1 of 1

Handling Popup Menu In Live Spell Checking

Posted: Tue Mar 10, 2009 2:53 am
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

Posted: Tue Mar 10, 2009 12:27 pm
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.

Posted: Tue Mar 10, 2009 12:51 pm
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.