Addict Spell Check problems
-
- Posts: 206
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Addict Spell Check problems
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.
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.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 206
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Solved problem - it still may be an issue with TSRichViewEdi
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.
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.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 206
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Thanks
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
The problem with OnSpellingCheck event will be fixed in the next update ScaleRichView v1.2.7
Re: Thanks
ScaleRichView is updated to v1.2.7. Must be ok now.
-
- Posts: 206
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
StartLiveSpelling waits until 1st key stroke
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
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
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 164
- Joined: Tue Nov 08, 2011 5:11 pm
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.
-
- Posts: 7
- Joined: Tue Oct 25, 2005 12:00 am
Demo for ScaleRichView, Addict 4.3 and Delphi XE2
I have just upgraded to SRichView 5, RV 14, and Addictive Spellchecking 4.3.
Is there a demo available? please!
Thanks
Christoph
Is there a demo available? please!
Thanks
Christoph
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.