Addict Spell Check problems

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Addict Spell Check problems

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

We will check this problem.
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Solved problem - it still may be an issue with TSRichViewEdi

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Thanks

Post 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!
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Re: Thanks

Post by proxy3d »

The problem with OnSpellingCheck event will be fixed in the next update ScaleRichView v1.2.7
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Re: Thanks

Post by proxy3d »

ScaleRichView is updated to v1.2.7. Must be ok now.
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

StartLiveSpelling waits until 1st key stroke

Post 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
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
JonRobertson
Posts: 164
Joined: Tue Nov 08, 2011 5:11 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Camphausen
Posts: 7
Joined: Tue Oct 25, 2005 12:00 am

Demo for ScaleRichView, Addict 4.3 and Delphi XE2

Post by Camphausen »

I have just upgraded to SRichView 5, RV 14, and Addictive Spellchecking 4.3.
Is there a demo available? please!
Thanks
Christoph
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply