Table of Contents

TTMSFNCChat Class

Displays a message-based chat interface with text, image, file, timestamp, and selection support.

API unit family: TMSFNCChat Inherits from: TTMSFNCCustomChat

Syntax

TTMSFNCChat = class(TTMSFNCCustomChat)

Properties

Name Description
AddImagesToBitmapContainer Controls whether added image messages are also registered in the bitmap container. True stores added images in the bitmap container; False keeps them only on the message item. (inherited from TTMSFNCCustomChat)
Appearance Gets or sets the appearance settings for message layout, title fonts, spacing, and attachment controls. (inherited from TTMSFNCCustomChat)
AttachmentButton Gets the toolbar button used for attachments. (inherited from TTMSFNCCustomChat)
ChatInteraction Gets or sets the interaction settings for scrolling, link handling, selection, and send-button behavior. (inherited from TTMSFNCCustomChat)
ChatMessages Gets or sets the collection of chat messages displayed by the control. (inherited from TTMSFNCCustomChat)
DefaultLeftItem Gets or sets the default appearance used for messages aligned to the left. (inherited from TTMSFNCCustomChat)
DefaultRightItem Gets or sets the default appearance used for messages aligned to the right. (inherited from TTMSFNCCustomChat)
EmojiList Gets or sets the list of emoji text replacements used by the chat. (inherited from TTMSFNCCustomChat)
Memo Gets the message entry memo control. (inherited from TTMSFNCCustomChat)
MessageTimestamp Gets or sets the timestamp display settings used for messages. (inherited from TTMSFNCCustomChat)
SendButton Gets the toolbar button used to send messages. (inherited from TTMSFNCCustomChat)
ShowMessageField Controls whether the message entry field and send controls are visible. True shows the input controls; False hides them. (inherited from TTMSFNCCustomChat)

Methods

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

Events

Name Description
OnAfterDrawMessage Occurs after a message background is drawn. (inherited from TTMSFNCCustomChat)
OnAfterDrawMessageIcon Occurs after a message icon is drawn. (inherited from TTMSFNCCustomChat)
OnAfterDrawMessageStatus Occurs after a message status indicator is drawn. (inherited from TTMSFNCCustomChat)
OnAfterDrawMessageText Occurs after message text is drawn. (inherited from TTMSFNCCustomChat)
OnAfterDrawMessageTitle Occurs after a message title is drawn. (inherited from TTMSFNCCustomChat)
OnAfterDrawTimestamp Occurs after a message timestamp is drawn. (inherited from TTMSFNCCustomChat)
OnAfterSendButtonMessage Occurs after the send button creates a message. (inherited from TTMSFNCCustomChat)
OnAfterSendMessage Occurs after a message is sent from the entry field. (inherited from TTMSFNCCustomChat)
OnAttachmentButtonClick Occurs when the attachment button is clicked. (inherited from TTMSFNCCustomChat)
OnBeforeDrawMessage Occurs before a message background is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeDrawMessageIcon Occurs before a message icon is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeDrawMessageStatus Occurs before a message status indicator is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeDrawMessageText Occurs before message text is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeDrawMessageTitle Occurs before a message title is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeDrawTimestamp Occurs before a message timestamp is drawn. (inherited from TTMSFNCCustomChat)
OnBeforeSelectChatItem Occurs before a message item is selected. (inherited from TTMSFNCCustomChat)
OnBeforeSendButtonMessage Occurs before the send button creates a message. (inherited from TTMSFNCCustomChat)
OnBeforeSendMessage Occurs before a message is sent from the entry field. (inherited from TTMSFNCCustomChat)
OnFileDragOver Occurs when files are dragged over the chat control. (inherited from TTMSFNCCustomChat)
OnFileDrop Occurs when files are dropped on the chat control. (inherited from TTMSFNCCustomChat)
OnGetSendButtonRect Occurs when the send button rectangle is requested. (inherited from TTMSFNCCustomChat)
OnLongPressItem Occurs when a long-press gesture is detected on a message. (inherited from TTMSFNCCustomChat)
OnMessageAnchorClick Occurs when a link inside a message text is clicked. (inherited from TTMSFNCCustomChat)
OnMessageClick Occurs when a message is clicked. (inherited from TTMSFNCCustomChat)
OnMessageDblClick Occurs when a message is double-clicked. (inherited from TTMSFNCCustomChat)
OnMessageMouseDown Occurs when a mouse button is pressed over a message. (inherited from TTMSFNCCustomChat)
OnMessageMouseEnter Occurs when the pointer enters a message. (inherited from TTMSFNCCustomChat)
OnMessageMouseLeave Occurs when the pointer leaves a message. (inherited from TTMSFNCCustomChat)
OnMessageSelected Occurs after a message item is selected. (inherited from TTMSFNCCustomChat)
OnMessageSelectionChanged Occurs when the selected message set changes. (inherited from TTMSFNCCustomChat)
OnMessageTitleAnchorClick Occurs when a link inside a message title is clicked. (inherited from TTMSFNCCustomChat)
OnMessageUnSelected Occurs after a message item is unselected. (inherited from TTMSFNCCustomChat)
OnSendButtonClick Occurs when the send button is clicked. (inherited from TTMSFNCCustomChat)

Used by