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 reorders Messages: moves Messages[AIndexFrom] to the position AIndexTo.

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

The method updates the content of ChatRichView and moves an item in Messages.

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