Page 1 of 1

Addict Spell Check problems

Posted: Sat Jul 21, 2007 2:26 am
by jimmaguire
I can't get addict live spell check to work with TSRichViewEdit. Works fine with TRichViewEdit. I tried to get it to work in your ActionTest, checked each area you have commented, but no luck.

When I call the RVAddictSpell3.CheckRichViewEdit(srve.RichViewEdit, ctAll), it gets into ad3SpellBase.ContinueCheck ok, but FParsingEnding.NextWord returns nothing each time so I just get "Spelling check is complete".

I've tried using the OnSpellingCheck event, but it causes a gpf before the form loads.

Posted: Sun Jul 22, 2007 3:32 pm
by Sergey Tkachenko
We will check this problem.

Solved problem - it still may be an issue with TSRichViewEdi

Posted: Sun Jul 22, 2007 7:03 pm
by jimmaguire
I deleted the uncommented OnSpellingCheck which I noticed was actually for RichViewEdit, not SR... in actions test and created a new one and then no longer got gpf. The new OnSpellingCheck of SRichViewEdit does not get called when I call rvActionAddictSpell31.

So then I assigned the OnSpellingCheck event in code during my form's create event and that did it, it now works. I stepped into the ScrlRView code and can see the assignment of the OnSpellingCheck event, but it does not take for some reason.

Posted: Tue Jul 24, 2007 4:13 pm
by Sergey Tkachenko
I just placed RVAddictSpell31 : TRVAddictSpell3 on the form and added a button with the code:
RVAddictSpell31.CheckRichViewEdit(SRichViewEdit1.RichViewEdit, ctAll);
It works as expected.

Thanks

Posted: Tue Jul 24, 2007 4:36 pm
by jimmaguire
It was just the OnSpellingCheck that I ended up have problems with, and just when I created the event via design. I've got everything working now, just assign the event in code. I started with the actiontest example as my base, maybe something got messed up in the translation. OK now!

Re: Thanks

Posted: Tue Jul 24, 2007 4:40 pm
by proxy3d
The problem with OnSpellingCheck event will be fixed in the next update ScaleRichView v1.2.7

Re: Thanks

Posted: Sat Jul 28, 2007 12:57 pm
by proxy3d
ScaleRichView is updated to v1.2.7. Must be ok now.

StartLiveSpelling waits until 1st key stroke

Posted: Tue Jul 31, 2007 1:56 am
by jimmaguire
I use Addict, but the red lines don't show until I press a key. Here's the code:

rvActionOpen1.LoadFile(srve.RichViewEdit, FileName, ffiRVF,0);
srve.RichViewEdit.StartLiveSpelling;

This code works for RichViewEdit in another form, but not TSRichViewEdit.

I'm using 1.2.7

Posted: Tue Jul 31, 2007 4:13 am
by Sergey Tkachenko
Livespelling is not implemented by 100% in ScaleRichView.
It works, but red underlines appear only on next repainting of SRichViewEdit.
It will be fixed sooner or later.

Posted: Mon Jul 02, 2012 10:25 pm
by JonRobertson
Sergey Tkachenko wrote:Livespelling is not implemented by 100% in ScaleRichView.
It works, but red underlines appear only on next repainting of SRichViewEdit.
It will be fixed sooner or later.
The demo still does this. Was this ever fixed?

Thanks

Posted: Tue Jul 03, 2012 6:37 pm
by Sergey Tkachenko
In the current version, live spelling check is completely implemented in ScaleRichView.
However, there may be some problem with starting live spelling.

First, live spelling check in SRichViewEdit starts when you load a document, because in the latest version SRichVeiwEdit.Format calls OnChange. It will be fixed in the next update. Currently, a quick fix is assigning SRichViewEdit.RichViewEdit.LiveSpellingMode = rvlspManualStart.

Next, if you call SRichViewEdit.RichViewEdit.StartLiveSpelling immediately after loading a document, live spelling check is not start. This is a bug (if StartLiveSpelling is called immediately after an editing operation that started live spelling, it fails), It will be fixed as well. A quick fix is the same.

Demo for ScaleRichView, Addict 4.3 and Delphi XE2

Posted: Thu Nov 15, 2012 12:31 pm
by Camphausen
I have just upgraded to SRichView 5, RV 14, and Addictive Spellchecking 4.3.
Is there a demo available? please!
Thanks
Christoph

Posted: Thu Nov 15, 2012 7:29 pm
by Sergey Tkachenko
Sorry, we do not have a demo for Addict 4 and ScaleRichView.

However, it can be easily created using ActionTest demos.
The instructions can be found here:
http://www.trichview.com/help-actions/addict_3.htm
They explain how to use Addict 4 with RichViewActions and TRichViewEdit. But for TSRichViewEdit, the instructions are almost exactly the same.

The ActionTest demos have the code working with Addict4 commented. Search for "Addict" in the source code of the main form unit.