Vcl.Forms.TCustomForm.FocusControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FocusControl(Control: TWinControl);

C++

void __fastcall FocusControl(Vcl::Controls::TWinControl* Control);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Sets focus to a control on the form.

Use FocusControl to set focus to a control on the form.

Control is a TWinControl object encapsulating the control on which to set focus. FocusControl sets the ActiveControl property.

See Also