FMX.Types.TTabList.GetTabOrder

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTabOrder(const TabStop: IControl): TTabOrder;

C++

System::Uitypes::TTabOrder __fastcall GetTabOrder(const _di_IControl TabStop);

Properties

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

Description

Returns the tab order of a IControl Object within a TabList.

For example, the following code will return the tab order of a TButton:

Delphi :

 var
  myInterface: ITabList;
begin
  myInterface := GetTabList;
ShowMessage(IntToStr(myInterface.GetTabOrder(Button1 as IControl)));
end;

C++ Builder :

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


See Also