TwwDBRichEditMSWord SpellCheck not being shown in Delphi XE?

122 views
Skip to first unread message

Derrick Meyer

unread,
Oct 18, 2013, 2:24:25 PM10/18/13
to woll2woll...@googlegroups.com
Hi,

I'm running IPStudioWin 8.0.3 and am noticing an issue with Delphi XE - the Spell Check feature is not in the menu and is not being shown as a button. Before executing the form this setting is true (runtime) and is true during design-time as well. I've done multiple searches in our source code to see if we're changing these properties but am not seeing them. Is there any known issue of not being able to use the Spell Check with Delphi XE?

Thanks,
Derrick
PCMS Support
10-18-2013 2-23-35 PM.png

Roy Woll

unread,
Oct 18, 2013, 9:17:07 PM10/18/13
to woll2woll...@googlegroups.com
You may be running into the issue. The following is from the readme file

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

Derrick Meyer

unread,
Oct 21, 2013, 12:32:24 PM10/21/13
to woll2woll...@googlegroups.com
That solution worked for me. Thank you!
Reply all
Reply to author
Forward
0 new messages