Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF control - spell check
Message
From
01/05/2009 22:08:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01397379
Message ID:
01397575
Views:
37
>>>Is there an efficient way to do a spell check of text in an RTF control?
>>>
>>>I see there are articles on doing it via Word, but I wonder if there is a better way.
>>>
>>>Alternatively, is there a third party control that works with VFP that is worth looking at?
>>>
>>>Cyril
>>
>>You can check Craig Boyd's library for spell check.
>>
>>http://www.sweetpotatosoftware.com/SPSBlog/2005/07/31/SpellingCheckerAndVFP.aspx
>
>Thanks, I'll take a look.

Since I've played briefly with Craig's class, a word of warning, because it's RTF. You'd have to pass the rtfbox.text property, and Craig's class is supposed to work with an editbox. You can copy the text into an invisible editbox, pass that as a parameter, then copy the text back - but then you'd lose all the formatting. To circumvent that, you'd have to keep a list of what was replaced and where, so when it gets back, you repeat the same replacements using rtfbox.find() and then stuff the replacement as rtf selection. Not too hard to do, IMO.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform