Table of Contents

TTMSFNCCustomChat Class

Base class for the chat component. Displays a scrollable list of message bubbles with sender icons, timestamps, and a built-in memo and send button for composing new messages.

API unit family: TMSFNCChat Inherits from: TTMSFNCCustomTableView Implements: IInterface, IDropTarget

Syntax

TTMSFNCCustomChat = class(TTMSFNCCustomTableView, IInterface, IDropTarget)

Properties

Name Description
AttachmentButton Gets the toolbar button used for attachments.
EmojiList Gets or sets the list of emoji text replacements used by the chat.
Memo Gets the message entry memo control.
SendButton Gets the toolbar button used to send messages.

Methods

Name Description
AddFile Adds a file message to the chat.
AddImage Adds an image message to the chat.
AddImageWithName Adds an image message and assigns a bitmap name.
AddMessage Adds a text message to the chat.
Clear Removes all chat messages.
DisableInputControls Disables the message entry and send controls.
EnableInputControls Enables the message entry and send controls.
InitSample Populates the chat with sample messages.
ScrollToBottom Scrolls the chat to the last message.
ScrollToTop Scrolls the chat to the first message.
XYToChatItem Returns the chat item at the specified coordinates.