Table of Contents

TTMSFNCCustomChat.AddImageWithName Method

Adds an image message and assigns a bitmap name.

API unit family: TMSFNCChat Declaring type: TTMSFNCCustomChat

Overloads

Overload 1

Adds an image message and assigns a bitmap name.

function AddImageWithName(AImagePath: string; AImageName: string; AText: string = ''; ALocation: TTMSFNCChatMessageLocation = cmlRight; AImageWidth: Integer = 150): TTMSFNCChatItem; overload;

Parameters

Name Description
AImagePath The path or URL of the image.
AImageName The bitmap name assigned to the image.
AText Optional message text displayed with the image.
ALocation The side where the message is displayed.
AImageWidth The display width of the image.

Returns

The newly created chat item.

Overload 2

Adds an image message with a bitmap name and title.

function AddImageWithName(AImagePath: string; AImageName: string; AText: string; ATitle: string; ALocation: TTMSFNCChatMessageLocation = cmlRight; AImageWidth: Integer = 150): TTMSFNCChatItem; overload;

Parameters

Name Description
AImagePath The path or URL of the image.
AImageName The bitmap name assigned to the image.
AText Message text displayed with the image.
ATitle The title displayed above the message text.
ALocation The side where the message is displayed.
AImageWidth The display width of the image.

Returns

The newly created chat item.