TTMSFNCButton Class
Displays a push button with optional HTML-formatted text and bitmap content.
API unit family: TMSFNCButton
Inherits from: TWebButton
Implements: ITMSFNCBitmapContainer
Syntax
TTMSFNCButton = class(TWebButton, ITMSFNCBitmapContainer)
Properties
| Name | Description |
|---|---|
| Bitmap | Sets the bitmap drawn by the button. |
| BitmapContainer | Provides the bitmap container used to resolve named bitmap resources. |
| BitmapName | Names the bitmap to load from the assigned bitmap container. |
| BitmapSize | Sets the requested bitmap size in pixels. |
| Cancel | Controls whether the button acts as the cancel button for the containing dialog. |
| Default | Controls whether the button acts as the default button for the containing dialog. |
| Font | Sets the font used by the formatted text renderer. |
| ImageAlign | Sets the alignment of the bitmap area relative to the button bounds. |
| OldFontColor | Stores the previous font color while web markup is parsed and applied. |
| ShowImage | Controls whether the bitmap is visible on the button. |
| ShowText | Controls whether the caption text is visible on the button. |
| Text | Sets the caption text displayed by the button. |
| TextAlign | Sets the alignment of the text area relative to the button bounds. |
| Version | Returns the component version string. |
| WordWrapping | Controls whether long captions wrap across multiple lines. |
Methods
| Name | Description |
|---|---|
| HTMLText | Returns the internal text renderer used to draw formatted button text. |
| Image | Returns the internal image renderer used to draw bitmap content. |
| RecalcEnabled | Recalculates the visual state after the enabled state changes. |