|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 WM_COPY message to the control.
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 (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