TTMSFNCDataGridButton Class
A button item displayed in the header or footer toolbar bar. Exposes Text, Bitmap, Hint, Width, Enabled, Visible state, and an OnClick event handler.
API unit family: TMSFNCDataGrid
Inherits from: TCollectionItem
Syntax
TTMSFNCDataGridButton = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| Bitmap | Optional icon rendered next to (or instead of) the caption. |
| Button | The underlying TTMSFNCToolBarButton instance that renders this button at runtime. Use it to access lower-level styling not exposed directly on the data grid button item. |
| Callback | Anonymous procedure invoked when the button is clicked. Useful as a compact alternative to assigning OnClick. |
| Control | Optional cell control hosted inside the button slot — replaces the default tool-bar button rendering with a fully custom control (e.g. a TButton or composite frame). |
| DataBoolean | Application-use slot for an arbitrary Boolean value associated with this button. |
| DataInteger | Application-use slot for an arbitrary integer value (e.g. a command ID or record key) associated with this button. |
| DataObject | Application-use slot for an arbitrary object reference associated with this button. The button does not take ownership. |
| DataPointer | Application-use slot for an arbitrary raw pointer associated with this button. |
| DataString | Application-use slot for an arbitrary string value associated with this button. |
| Enabled | When True (default), the button accepts clicks. Set to False to render the button greyed-out and ignore clicks. |
| Hint | Tooltip text shown when the user hovers over the button. |
| Name | Identifier name for this button. Useful when looking up a specific button programmatically in the Buttons collection. |
| Text | Caption displayed on the button. |
| Visible | When True (default), the button is rendered. Set to False to hide it without removing it from the collection. |
| Width | Width in logical pixels reserved for this button on the toolbar bar. |
Events
| Name | Description |
|---|---|
| OnClick | Event fired when the user clicks this button. |