TTMSFNCBloxSettingsPanel.AddButton Method
Adds a button to the panel and returns it so its appearance and event handler can be configured.
API unit family: TMSFNCBloxToolBar
Declaring type: TTMSFNCBloxSettingsPanel
Inherited from: TTMSFNCBloxToolBarPanel
Syntax
function AddButton(AOwner: TComponent; AWidth: Single = -1; AHeight: Single = -1; AResource: String = ''; AResourceLarge: String = ''; AHint: string = ''; AText: String = ''; AIndex: Integer = -1): TTMSFNCToolBarButton;
Parameters
| Name | Description |
|---|---|
AOwner |
Component that owns the created button. |
AWidth |
Button width; pass -1 to use the default width. |
AHeight |
Button height; pass -1 to use the default height. |
AResource |
Resource name of the normal-size glyph. |
AResourceLarge |
Resource name of the large-layout glyph. |
AHint |
Hint text shown when hovering the button. |
AText |
Caption displayed on the button. |
AIndex |
Insertion position; pass -1 to append at the end. |
Returns
The newly created button.