TRVChat.GetSelectedTextForQuote, HasSelectedTextForQuote

<< Click to display table of contents >>

TRVChat.GetSelectedTextForQuote, HasSelectedTextForQuote

The methods return information for quoting a message.

function GetSelectedTextForQuote(
  out Msg: TRVChatMessage;
  out Text: TRVUnicodeString): Boolean;
 
function HasSelectedTextForQuote: Boolean;

Parameters

HasSelectedTextForQuote returns True if ChatRichView contains a fragment suitable for quoting; that is, there is a selected fragment entirely within the text of a single message.

GetSelectedTextForQuote returns this message along with the selected text (or nil if no text fragment of a single message is selected)