pasting text

General TRichView support forum. Please post your questions here
Post Reply
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

pasting text

Post by shmp »

Sergey,

I like to exclude unicode while pasting.

rvoAutoCopyUnicodeText = false

did not work. Any idea?

Thanks in advance.
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post by shmp »

Like the option in drag-and-drop of rvddUnicodeText.
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

The most important note: even if you paste/drop Unicode text, if it is pasted in non-Unicode text in TRichViewEdit, it will be pasted as non-Unicode text (converted from Unicode).

Drag-and-drop: text and Unicode text are different formats. Dragged data can contain either only non-Unicode text, or only Unicode text, or the both.
To disable dropping Unicode text, exclude rvddUnicodeText from RichViewEdit.AcceptDragDropFormats property.

Clipboard: In WinNT4/2000/XP/Vista/7, the Clipboard automatically converts non-Unicode and Unicode text to each other. I.e. if you copy non-Unicode text, both non-Unicode and Unicode text will be available for pasting. The same for copying Unicode text. TRichViewEdit chooses the text format to paste depending on the text at the caret position. If it is Unicode text, it pastes Unicode text, and vice versa.
shmp
Posts: 140
Joined: Sun Aug 28, 2005 10:19 am
Location: Sabah, Malaysia.
Contact:

Post by shmp »

OK I understand. Thank you very much.
Post Reply