Spellsheck with hunspell DLL

General TRichView support forum. Please post your questions here
Post Reply
rellik
Posts: 18
Joined: Mon Oct 05, 2015 9:17 am

Spellsheck with hunspell DLL

Post by rellik »

I have project for spellsheck with hunspell DLL.

In your subject we have TRichView, but I need to use TSRichView. I change components, and linked TRVAPopupMenu with my TSRichView, but he is not popup.
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TSRichViewEdit is checked like TRichViewEdit, you just need using SRichViewEdit.ActiveEditor as a parameter.

TRVAPopupMenu does not support hunspell automatically.
First, you need to process OnSpellingCheck event to underline misspelled words.
Next, process events of TRVAPopupMenu: OnLiveSpellGetSuggestions, OnLiveSpellIgnoreAll, OnLiveSpellAdd.
You can find the example in demo projects included in the spell parsers, in HunSpell\RichViewActions folder. This example is for TRichViewEdit, but, as I said, an example for TSRichViewEdit would be the same.
rellik
Posts: 18
Joined: Mon Oct 05, 2015 9:17 am

Post by rellik »

I did exactly as you said. For the example Demos\HunSpell\RishViewActions\
and I replaced RichViewEdit on SRichViewEdit.

Then I process the event OnSpellingCheck for SRichViewEdit.
Then I link SRichViewEditwith RVAPopupMenu, (tried to link SRichViewEdit.ActiveEditor with TRVAPopupMenu)
For TRVAPopupMenu process events OnLiveSpellGetSuggestions, OnLiveSpellIgnoreAll, OnLiveSpellAdd.
The dictionaries are downloaded, the erroneous words are underlined, but RVAPopupMenu is not working, nothing POPs up.
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Add SRVActions unit in "uses"
rellik
Posts: 18
Joined: Mon Oct 05, 2015 9:17 am

Post by rellik »

it does not help.
rellik
Posts: 18
Joined: Mon Oct 05, 2015 9:17 am

Post by rellik »

I send U e-mail to richviewgmailcom
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Brief summary: it works in the new version of ScaleRichView, the problem were because of an outdated version.
Post Reply