Skip to main content
Table of Contents

TTMSFNCCustomToolBar.AddCustomControl Method

Adds an existing control instance to the toolbar at the given position.

API unit family: TMSFNCToolBar Declaring type: TTMSFNCCustomToolBar

Syntax

FMX.TMSFNCToolBar.hppPascalC++
procedure AddCustomControl(AControl: TControl; AIndex: Integer = -1); virtual;
virtual void __fastcall AddCustomControl(Fmx::Controls::TControl* AControl, int AIndex = 0xffffffff);

Parameters

Name Description
AControl The control to insert.
AIndex Zero-based insertion index, or -1 to append.