Page 1 of 1

Spellsheck with hunspell DLL

Posted: Fri Oct 30, 2015 8:14 am
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.

Posted: Fri Oct 30, 2015 8:53 am
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.

Posted: Mon Nov 02, 2015 12:37 pm
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.

Posted: Mon Nov 02, 2015 6:04 pm
by Sergey Tkachenko
Add SRVActions unit in "uses"

Posted: Thu Nov 05, 2015 9:10 am
by rellik
it does not help.

Posted: Thu Nov 05, 2015 9:38 am
by rellik
I send U e-mail to richviewgmailcom

Posted: Sun Nov 08, 2015 9:16 am
by Sergey Tkachenko
Brief summary: it works in the new version of ScaleRichView, the problem were because of an outdated version.