Vcl.Controls.TWinControl.SetFocus
Delphi
procedure SetFocus; virtual;
C++
virtual void __fastcall SetFocus();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Gives the input focus to the control.
Use SetFocus to change input focus to the control. When a control has focus, it receives keyboard events.
See Also
Code Examples