TwwRichEditBar and SpellCheck: If you wish to use the Microsoft spell checker with the TwwRichEditBar component, you will need to add code to your OnSpellCheck event to call MSWordSpellChecker. For instance, you can add the unit wwrichedspellxp to your form’s uses clause and then callMSWordSpellChecker from your OnSpellCheck event of the TwwRichEditBar.RichEdit component.
Uses wwichedspellxp;
procedure TMainDemo.wwRichEditBar1RichEditSpellCheck(Sender: TObject);
begin
MSWordSpellChecker(wwRichEditBar1.RichEdit);
end;
This applies to the richeditbar, but seems to apply to the MSWordSpellChecker component as well. Note that the MSWordSpellChecker component is preserved for backwards compatibility, but you only need to define the OnSpellCheck event to enable spell checking. For instance...
procedure TMainDemo.wwDBRichEditMSWord1SpellCheck(Sender: TObject);
begin
MSWordSpellChecker(Sender as TwwDBRichEdit);
end;
This code spell checks the richedit using the microsoft spell checker.
-Roy