TTMSFNCChatItem Class
Represents a single message entry in the chat, including text, image, bitmap, and style settings.
API unit family: TMSFNCChat
Inherits from: TCollectionItem
Syntax
TTMSFNCChatItem = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| Bitmap | Bitmap displayed as the icon or image content of the message. |
| BitmapContainer | Returns the bitmap container used for named bitmap lookups on this item. |
| BitmapHeight | Display height in pixels of the message bitmap. |
| BitmapName | Name used to look up the bitmap from the bitmap container. |
| BitmapPosition | Vertical alignment of the bitmap relative to the message bubble. |
| BitmapWidth | Display width in pixels of the message bitmap. |
| CategoryID | Category identifier used to group this message with others in the same category. |
| Corners | Set of corners on the message bubble that are rounded. |
| DBKey | Stores a database key string associated with this message item. |
| DataBoolean | Stores a Boolean value associated with this message item. |
| DataInteger | Stores an integer value associated with this message item. |
| DataObject | Stores an object reference associated with this message item. |
| DataPointer | Stores an untyped pointer associated with this message item. |
| DataString | Stores a string value associated with this message item. |
| DisabledTextColor | Color of the body text when the message is disabled. |
| DisabledTitleColor | Color of the title text when the message is disabled. |
| Enabled | When True, the message item responds to user interaction. |
| Fill | Fill settings applied to the message bubble background in its normal state. |
| HorizontalTextAlign | Horizontal alignment of the body text inside the message bubble. |
| MessageIndent | Horizontal indent in pixels that narrows the maximum width of the message bubble. |
| MessageLocation | Side of the chat where this message bubble is displayed. |
| MessageType | Content type of this message: text, image, or file attachment. |
| Padding | Inner padding in pixels between the bubble border and its content. |
| Rounding | Corner radius in pixels applied to the rounded corners of the message bubble. |
| SelectedFill | Fill settings applied to the message bubble when it is selected. |
| SelectedStroke | Stroke settings applied to the message bubble border when it is selected. |
| SelectedTextColor | Color of the body text when the message is selected. |
| SelectedTitleColor | Color of the title text when the message is selected. |
| Status | Status text displayed near the message bubble, such as "Sent" or "Read". |
| StatusPosition | Corner where the status text is displayed relative to the message bubble. |
| Stroke | Stroke settings applied to the message bubble border in its normal state. |
| Tag | Integer tag for storing custom data associated with this message item. |
| Text | Body text or HTML content of the message. |
| TextColor | Color of the body text in the normal state. |
| Timestamp | Date and time when the message was created or sent. |
| Title | Title text displayed above the message body. |
| TitleColor | Color of the title text in the normal state. |
| TitleHorizontalTextAlign | Horizontal alignment of the title text inside the message bubble. |
| TitleVerticalTextAlign | Vertical alignment of the title text inside the message bubble. |
| URLColor | Color used to highlight hyperlink anchors in the message text. |
| VerticalTextAlign | Vertical alignment of the body text inside the message bubble. |
| Visible | When True, the message item is rendered in the chat list. |
Methods
| Name | Description |
|---|---|
| AssignData | Copies only the data fields from the source item without copying appearance settings. |
| IsSelected | Returns True when this message item is currently selected. |