Subject: Modified Spellers.pas to Support TJvRichEdit __UPDATED___
From: "Edwin"
Date: Sat, 10 Feb 2007 20:06:29 +0800
To: "LS"

Dear Luzius Schneider,
 
I have further information on the spell check component and TJvRichEdit, if I register TJvRichEdit with below code:
 
SpellChecker.RegisterEditControl('TJvRichEdit', True, False);
 
than the spell check process will start from the right postion, but if the TJvRichEdit object contains far eastern characters, the program will dead.
 
 
 
 

Best Regards,
Edwin
2007-02-10

Sender£º Edwin
Sent£º 2007-02-10 18:23:07
Recipient£º Luzius Schneider
CC£º
Subject£º Modified Spellers.pas to Support TJvRichEdit
 
Dear Luzius Schneider,
 
Last time I asked you a question about the compatibility between your spell check component(see below email), and recetly I started to use it in my app, and I found a way to make it support TJvRichEdit object with not only text loaded. After chaning the source most of the time it works, but in some cases it dosen't, you can try the JvRichEdit Example called "EditorDemo" shipped with JVCL 3.x, you will find that the spell check will not start from the right position. bellow is my change to Spellers.pas, all addtion are enclosed by comments. I you have any idea to make it more better, please let me know, thanks.
 
  if FMemoRichEd then
    begin
      PT:= TRichEdit(FMemo).PlainText;
      TRichEdit(FMemo).PlainText:= False;
      TRichEdit(FMemo).Lines.SaveToStream(MS);
      MS.Position:= 0;
      TRichEdit(FBackMemo).Lines.LoadFromStream(MS);
      TRichEdit(FMemo).PlainText:= PT;
    end
  //added by edwin
  else if FMemo is TJvRichEdit then
    begin
      PT:= TJvRichEdit(FMemo).PlainText;
      TJvRichEdit(FMemo).PlainText:= False;
      TJvRichEdit(FMemo).Lines.SaveToStream(MS);
      MS.Position:= 0;
      TJvRichEdit(FBackMemo).Lines.LoadFromStream(MS);
      TJvRichEdit(FMemo).PlainText:= PT;
    end
  //end added by edwin 
  else
    begin
      FMemo.Lines.SaveToStream(MS);
      MS.Position:= 0;
      FBackMemo.Lines.LoadFromStream(MS);
    end;
 

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
------------------------------------------