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;
TTMSFNCToolBarButton* __fastcall AddButton(System::Classes::TComponent* AOwner, float AWidth = -1.000000E+00f, float AHeight = -1.000000E+00f, System::UnicodeString AResource = System::UnicodeString(), System::UnicodeString AResourceLarge = System::UnicodeString(), System::UnicodeString AHint = System::UnicodeString(), System::UnicodeString AText = System::UnicodeString(), int AIndex = 0xffffffff);
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.