Problem on implement spellcheck in richviewedit

General TRichView support forum. Please post your questions here
Post Reply
VT
Posts: 18
Joined: Mon Jul 31, 2006 1:39 pm

Problem on implement spellcheck in richviewedit

Post by VT »

I am having problems on implement spellcheck on a text editor with TRichViewEdit. I'm tried the following code:


procedure TForm.RichViewEditSpellingCheck(Sender: TCustomRichView;
const AWord: String; StyleNo: Integer; var Misspelled: Boolean);
begin
misspelled:=false;
if spellchecker_ignorelist.IndexOf(Aword) >= 0 then
exit;
misspelled:=not(spellchecker1.IsKnownWord(Aword,Spellchecker1.Language));
end;


procedure TForm.SpellLanguageComboBoxChange(Sender: TObject);
begin
RichViewEdit.StartLiveSpelling;
end;

It doesn't worked.
Please help me.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you use LS Speller?
Did you see this topic: http://www.trichview.com/forums/viewtopic.php?t=801 ?
VT
Posts: 18
Joined: Mon Jul 31, 2006 1:39 pm

Still having problems on spellchecking

Post by VT »

I tried the code on lsspelldemo but it didn't worked. When i add text with ADNL and start live spelling, it work, but when i click in richviewedit, the marks disapear and when i do live spelling againg, it don't work.
I'm using RVLSSpell and SpellChecker.
Please, help me.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What version of LS Speller?
VT
Posts: 18
Joined: Mon Jul 31, 2006 1:39 pm

Still having problems on spellchecking

Post by VT »

Well, I don't know wish version it is, but i have got it recently in one of those links you posted.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I'll try to check this weekend, may be there is a newer version of LS Speller uploaded, incompatible with TRichView wrapper...
Post Reply