|Top Previous Next|
Copies the selected fragment to the Clipboard in several formats according to Options.
function CopyDef: Boolean;
This is the main method for copying to the Clipboard. It is executed automatically when user presses Ctrl + C or Ctrl + Insert .
Calling CopyDef does the same thing as sending the control a WM_COPY message.
This procedure does nothing if there is nothing selected.
This procedure clears the Clipboard before copying.
▪if (rvoAutoCopyRVF in Options), it copies selection as RVF.
▪if (rvoAutoCopyText in Options), it copies selection as ANSI text. ANSI text is not copied under Windows NT based systems (Windows 2000, XP, Vista), if rvoAutoCopyUnicodeText is included in Options. In Windows NT, the Clipboard can convert ANSI and Unicode texts to each other.
▪if (rvoAutoCopyImage in Options), and there is only one picture selected, it copies selection as an image.
▪if (rvoAutoCopyUnicodeText in Options), it copies text as Unicode text.
▪if (rvoAutoCopyRTF in Options), it copies selection as RTF.
This method must be called only when the document is formatted.
"Is the selection not empty?" and "Is at least one of rvoAutoCopy*** options set?"
TRichView © trichview.com