FMX.Forms.TCommonCustomForm.SetActiveControl

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

procedure SetActiveControl(const AControl: IControl);

C++

void __fastcall SetActiveControl(const Fmx::Types::_di_IControl AControl);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
protected
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm


Beschreibung

Setzt den Fokus auf das angegebene AControl-Steuerelement.

SetActiveControl setzt den Fokus auf das angegebene AControl-Steuerelement (legt das aktive Steuerelement fest), falls möglich.

Die abgeleitete TCustomForm-Klasse verwendet diese als protected deklarierte SetActiveControl-Methode in der Setter-Methode der Eigenschaft ActiveControl.

SetActiveControl ruft intern FMX.Controls.TControl.SetFocus auf.

Siehe auch