Skip to main content
Table of Contents

TTMSFNCChat.OnBeforeSendMessage Event

Occurs before a message is sent from the entry field.

API unit family: TMSFNCChat Declaring type: TTMSFNCChat Inherited from: TTMSFNCCustomChat

Syntax

FMX.TMSFNCChat.hppPascalC++
OnBeforeSendMessage: TTMSFNCChatBeforeSendButtonMessageEvent;
__property TTMSFNCChatBeforeSendButtonMessageEvent OnBeforeSendMessage = {read=FOnBeforeSendMessage, write=FOnBeforeSendMessage};

Parameters

Name Description
Sender The chat control that raises the event.
AText The message text that can be adjusted before sending.
AAllow Set to False to cancel sending the message.