TRVChat.MoveMessage

<< Click to display table of contents >>

TRVChat.MoveMessage

Moves the specified message to the new position.

function MoveMessage(AIndexFrom,
  AIndexTo: Integer): Boolean;

The method reorder Messages: moves Messages[AIndexFrom] to the position AIndexTo.

This method is rarely used, since messages are usually added with AddMessage and not reordered.

The methods update both the content of ChatRichView and deletes an item in Messages.

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