FMX.Forms.TCommonCustomForm.SetActiveControl
Delphi
procedure SetActiveControl(const AControl: IControl);
C++
void __fastcall SetActiveControl(const Fmx::Types::_di_IControl AControl);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
procedure function |
protected | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCommonCustomForm |
Description
Attribue la focalisation au contrôle AControl spécifié.
SetActiveControl attribue la focalisation au contrôle AControl spécifié (définit le contrôle actif), si cela est possible.
La classe TCustomForm descendante utilise cette méthode SetActiveControl protégée dans l'accesseur en écriture de la propriété ActiveControl.
SetActiveControl appelle de manière interne FMX.Controls.TControl.SetFocus.