[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.FocusControl

Focus the control. If needed bring form to front.

Declaration

Source position: forms.pp line 624

public procedure TCustomForm.FocusControl(

  WinControl: TWinControl

);

Arguments

WinControl

  

The control receiving the focus.

Errors

If the control or one of its parents is not visible or disabled an exception will be raised (in SetFocus).

The latest version of this document can be found at lazarus-ccr.sourceforge.net.