TRVChat.ChangeMessageText

<< Click to display table of contents >>

TRVChat.ChangeMessageText

Replaces the message text.

function ChangeMessageText(Msg: TRVChatMessage;
  const AText: TRVUnicodeString;
  EditCount: Integer = -1): Boolean;

The method updates content of ChatRichView.

The method expects ChatRichView to be formatted before they are called. It re-formats the changed message.

Parameters

Msg – the message whose image needs to be replaced. Msg must be present in Messages.

AText – new message text.

If EditCount >= 0, it is assigned to Msg.EditCount. Otherwise, Msg.EditCount is incremented.

Return value

True on success.