trichview.com

trichview.support




Re: Unicode - TRichView


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/21/2002 20:08:05


Hi,


No problems.

RichView documents can contain text in both Unicode and single-byte encoding

(or only in Unicode, or only single-byte).

Unicode strings can be added from program code, loaded from a text file, RTF

file, pasted from the Clipboard.


Example:

The main editor demo,

Demos\Editor\ directory of the rv installation

(or compiled http://www.trichview.com/rvfiles/rvedit.zip)

In this demo

1) In the file loaded by default, you'll see some Unicode text in Japanese,

Chinese, Korean (somewere at the bottom of the document).

2) Choose "Unicode" in the list of text styles, then load an Unicode text

file (File | Load&Import) or paste Unicode text.


How to implement in your application:

- set Unicode property to True for all (or some) text styles (items of

RVStyle.TextStyles collection); in the demo above, only one text style

initially has Unicode encoding (this style is named "Unicode")

- set RichViewEdit.RTFReadProperties.UnicodeMode to rvruMixed or

rvruOnlyUnicode (this property controls loading Unicode from RTF files)


Please read "Unicode in RichView" topic of the help file.


> Hi,

>

> How can I show Unicode with TRichView, Delphi 6.

>

> thank you

>

>







Powered by ABC Amber Outlook Express Converter