Subject: Modified Spellers.pas to fix a bug
From: "Edwin"
Date: Sun, 11 Feb 2007 19:51:30 +0800
To: "Luzius Schneider"

Dear Luzius Schneider,
 
during using your spell checker component , I found another bug, that the TSpellChecker will hang in some cases, and i trace into your source code found that the 'MaxLen' parameter passed to TISpeller.FindMisspell is not correct, I don't know why. to fixed this bug in a simple way, I added  one line of code, ,maybe it's not neat enough, but it works. see below:
 
function TISpeller.FindMisspell(Buf: PChar; MaxLen: Integer; var Start,
  Len: Integer): TSpellReturnCode;
const SDelim = ' <>!.,;:/\|"[]{}()+_=`~@&$%^*?#-';
      SNum = '0123456789';
var S: WideString;
    i, ReplDataLenth, X, A, Slength: Integer;
    NumFound: Boolean;
begin
 Result:= srNoErrors;
 if FNotActive then Exit;
 X := 0;
 while True do begin
   S := Buf;
  
   //added by edwin
   MaxLen := Length(s);
   //end added by edwin
....
 
 

Best Regards,
Edwin
 
2007-02-10

Sender£º Luzius Schneider
Sent£º 2006-11-23 04:52:01
Recipient£º Mind Visualizer--Productive Mind Mapping Software
CC£º
Subject£º Re: TSpellChecker with TJvRichEdit from JEDI VCL.
 
Thanks for your interest.
TSpellChecker should work together with TJvRichEdit.
I use it frequently with a TRxRichedit which is basically TJvRichEdit.
 
Sorry, I don't know more.
 
Have a nice day
 
Luzius
 
 
Mind Visualizer--Productive Mind Mapping Software wrote:
> Dear Luzius Schneider,
>
> I'm trying to use your excellent TSpellChecker component in my application, now have a problem, may I ask your a question? 
>
> I tried use TSpellChecker with JVCL's  TJvRichEdit, but it seems dosen't work( the dialog dosen't popup), any tips? thanks.
>  
> --------------
> Best Regards,
> Mind Visualizer--Productive Mind Mapping Software
http://www.mindmapware.com
> 2006-11-22
>
>   
 
-- 
------------------------------------------
Luzius Schneider
Kruggasse 70
CH-5462 Siglistorf
SWITZERLAND
++41 56 243 15 63
E-mail: LS@luziusschneider.com
or: luzius.schneider@switzerland.org
http://www.luziusschneider.com
------------------------------------------