FMX.Types.TTabList.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Add(const TabStop: IControl); virtual;

C++

virtual void __fastcall Add(const _di_IControl TabStop);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TTabList

Description

Adds a IControl Object to the TabList.


For example, the following code will add a TButton to the TabList:

Delphi :

 var
  myInterface: ITabList;
begin
  myInterface := GetTabList;
 myinterface.Add(Button1 as IControl);
end;

C++ Builder :

ITabList * myInterface = GetTabList();
myInterface->Add(System::interface_cast<IControl>(Button1));

Note: When a focusable control is added to the form , it is automatically added on the TabList.

See Also