Vcl.Forms.TCustomForm.DefocusControl
Delphi
procedure DefocusControl(Control: TWinControl; Removing: Boolean);
C++
void __fastcall DefocusControl(Vcl::Controls::TWinControl* Control, bool Removing);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Removes focus from a control on the form.
Use DefocusControl to remove focus from a control on the form. This method is used internally by the VCL.
Control is the control from which to remove focus. If Control is the form's active control, DefocusControl sets the form's ActiveControl property to nil (Delphi) or NULL (C++).
Removing specifies whether to set focus to the control's parent.