trichview.com

trichview.support




Re: Unicode simbols


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/29/2004 20:39:19


Hello,


This code is useful only if you have document containing both Unicode and

non-Unicode text.

You do not need to insert this code in events.

You may need it only if you want to insert unicode string with InsertTextW

method.


Do you need the completely Unicode documents?

If yes, you need to:

- set Unicode property to True for all text styles (since all editing

operations create new styles basing on existing styles, all new styles will

be Unicode as well)

- set rv.RTFReadProperties.UnicodeMode to rvruOnlyUnicode to prevent

creating non-Unicode styles when loading RTF files.

After this, non-Unicode text may appear only when reading old RVF files. A

code for converting the existing documents to Unicode is in

trichview.support.examples (I can repost it here, if you need).


> But if you want just to insert separate Unicode symbols, you just need to

> ensure that current text style at the moment of insertion is Unicode

> Call this procedure before inserting Unicode string:

>





Powered by ABC Amber Outlook Express Converter