FMX.Forms.TCommonCustomForm.SetActiveControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetActiveControl(const AControl: IControl);

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

Sets the focus to the specified AControl control.

SetActiveControl sets the focus to the specified AControl control (sets the active control), if possible.

The descendant TCustomForm class uses this protected SetActiveControl method in the setter of the ActiveControl property.

SetActiveControl internally calls FMX.Controls.TControl.SetFocus.

See Also