TTMSFNCCustomChat.AddMessage Method
Adds a text message to the chat.
API unit family: TMSFNCChat
Declaring type: TTMSFNCCustomChat
Overloads
Overload 1
Adds a text message to the chat.
function AddMessage(AText: string; ALocation: TTMSFNCChatMessageLocation = cmlRight; ATriggerSendEvent: Boolean = True): TTMSFNCChatItem; overload;
Parameters
| Name | Description |
|---|---|
AText |
The message text. |
ALocation |
The side where the message is displayed. |
ATriggerSendEvent |
Specifies whether send events are raised for the added message. |
Returns
The newly created chat item.
Overload 2
Adds a text message with a title to the chat.
function AddMessage(AText: string; ATitle: string; ALocation: TTMSFNCChatMessageLocation = cmlRight; ATriggerSendEvent: Boolean = True): TTMSFNCChatItem; overload;
Parameters
| Name | Description |
|---|---|
AText |
The message text. |
ATitle |
The title displayed above the message text. |
ALocation |
The side where the message is displayed. |
ATriggerSendEvent |
Specifies whether send events are raised for the added message. |
Returns
The newly created chat item.