Page 1 of 1

pasting text

Posted: Mon Jun 21, 2010 6:03 am
by shmp
Sergey,

I like to exclude unicode while pasting.

rvoAutoCopyUnicodeText = false

did not work. Any idea?

Thanks in advance.

Posted: Mon Jun 21, 2010 9:58 am
by shmp
Like the option in drag-and-drop of rvddUnicodeText.

Posted: Mon Jun 21, 2010 3:58 pm
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.

Posted: Mon Jun 21, 2010 11:22 pm
by shmp
OK I understand. Thank you very much.