TRVChat.ChangeMessageImage

<< Click to display table of contents >>

TRVChat.ChangeMessageImage

Replaces the image attached to the message and its associated text.

function ChangeMessageImage(Msg: TRVChatMessage;
  Image: TRVGraphic;
  const ImageText: TRVUnicodeString): 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 and must already have an attached image – you can only replace an existing image; you cannot add an image to a message that did not have one.

Image – new image. On success, it will be owned by the ChatRichView (do not free it yourself).

ImageText – new text associated with this image.

Return value

True on success.