FMX.Types.IRoot.SetActiveControl
Delphi
procedure SetActiveControl(const AControl: IControl);
C++
virtual void __fastcall SetActiveControl(const _di_IControl AControl) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | IRoot |
Description
Declares a method which sets the focus to the specified AControl
control, if possible.
Implement it to set the focus to the specified AControl
control (to set the active control), if possible.
The FMX.Forms.TCommonCustomForm class implements SetActiveControl and FMX.Forms.TCustomForm uses SetActiveControl in the setter of the ActiveControl property.