Copy text from TRichView to Word -> no Spellcheck

General TRichView support forum. Please post your questions here
Post Reply
Kern
Posts: 25
Joined: Mon Aug 07, 2006 3:49 pm

Copy text from TRichView to Word -> no Spellcheck

Post by Kern »

If we copy text from a TRichViewEdit component to Word using the clipboard, the text copied will not be check by the spellchecking-routine of word.

If we have a look at the properties of the copied text in Word, the property "Rechtschreibung und Grammatik nicht prüfen" (in english: "Spellchecking and Gramatic disabled") is set.

Any idea?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Currently, TRichView saves language of text depending on TextStyles[].Charset.
"No spell check" ($0400 language) is saved for the following charsets:
OEM_CHARSET, MAC_CHARSET (these two must not present in TRichView at all),
SYMBOL_CHARSET,
EASTEUROPE_CHARSET.
The last one is because there are too many different languages in this charset. But now I think this is a bad solution. For EASTEUROPE_CHARSET, no language must be saved at all. To fix it, open RVUni.pas and change RVU_Charset2Language. For EASTEUROPE_CHARSET, it must return $0000.

PS: I believe the problem was with EASTEUROPE_CHARSET.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

PPS: As far as I remember, in older versions, "no spell check" was saved also for DEFAULT_CHARSET. But it was in very very old versions.
Post Reply