Table of Contents

TTMSFNCRibbonDefaultToolBar.AddButton Method

Adds a ribbon toolbar button and returns it.

API unit family: TMSFNCRibbon Declaring type: TTMSFNCRibbonDefaultToolBar

Syntax

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.