trichview.com

trichview.support




Re: Pasting Unicode


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/13/2002 21:18:00


Hi,


It does it.


Paste -> PasteTextW -> InsertTextW_ -> BeforeUnicode

BeforeUnicode switches text style to the default Unicode style (if it is

defined, and if current style is not Unicode).

But if current text is not Unicode, the Clipboard will be pasted as

non-Unicode text (PasteText).

(and WinNT,2000,XP translates ANSI text <-> Unicode text automatically, so

Unicode text will never be pasted in non-Unicode text style by Paste).

You need to call PasteTextW explicitly.



> Hi,

>

> Currently if I try to paste in Unicode data and the selected text style

does

> not support unicode, I get junk characters.

>

> I have just been having a look at the TRVEdit.Paste method. This checks to

> see if the clipboard format contains unicode, and if it does it will check

> if the current text style can display unicode.

>

> However should this method if the current text style does not display

> unicode then change the text style to the default unicode font specified

in

> the properties of TRVStyle

>

> Regards

> Ben

>

>

>





Powered by ABC Amber Outlook Express Converter