TRVChat.CopyToClipboard

<< Click to display table of contents >>

TRVChat.CopyToClipboard

Copies the selected chat content to the clipboard.

procedure DoCopyToClipboard(
  SelectCopiedMessages: Boolean = True);

If a single image is selected, ChatRichView it is copied to the clipboard. Otherwise,

if ChatRichView does not have a selection, and HighlightedMessage is assigned, it is copied to the clipboard as a plain text. Otherwise,

If ChatRichView contains a selected fragment, all messages at least partially included in it are copied to the clipboard as text (see GetMessagesAsText). If SelectCopiedMessages = True, the method expands the selection to include all copied messages in full.