Sergey,
I like to exclude unicode while pasting.
rvoAutoCopyUnicodeText = false
did not work. Any idea?
Thanks in advance.
pasting text
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.