TTMSFNCRibbonToolBar.AddButton Method
Adds a ribbon toolbar button and returns it.
API unit family: TMSFNCRibbon
Declaring type: TTMSFNCRibbonToolBar
Inherited from: TTMSFNCRibbonDefaultToolBar
Overloads
Overload 1
Adds a ribbon toolbar button and returns it.
function AddButton(AWidth: Single = -1; AHeight: Single = -1; AResource: String = ''; AResourceLarge: String = ''; AText: String = ''; AIndex: Integer = -1): TTMSFNCRibbonDefaultToolBarButton; reintroduce; virtual;
Parameters
| Name | Description |
|---|---|
AWidth |
Button width in pixels; pass -1 for the default width. |
AHeight |
Button height in pixels; pass -1 for the default height. |
AResource |
Name of the normal-size bitmap resource. |
AResourceLarge |
Name of the large bitmap resource. |
AText |
Button caption text. |
AIndex |
Insertion index; pass -1 to append. |
Overload 2
Adds a ribbon toolbar button to this page toolbar and returns it.
function AddButton(AWidth: Single = -1; AHeight: Single = -1; AResource: String = ''; AResourceLarge: String = ''; AText: String = ''; AIndex: Integer = -1): TTMSFNCRibbonToolBarButton; reintroduce; virtual;
Parameters
| Name | Description |
|---|---|
AWidth |
Button width in pixels; pass -1 for the default width. |
AHeight |
Button height in pixels; pass -1 for the default height. |
AResource |
Name of the normal-size bitmap resource. |
AResourceLarge |
Name of the large bitmap resource. |
AText |
Button caption text. |
AIndex |
Insertion index; pass -1 to append. |