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

TCustomForm.SetFocusedControl

Handles a focus change for a control (enter/exit messages).

Declaration

Source position: forms.pp line 728

public function TCustomForm.SetFocusedControl(

  Control: TWinControl

):Boolean; virtual;

Arguments

Control

  

The control with focus on the form.

Function result

False when the focused control cannot be changed.


Version 4.0 Generated 2025-05-03 Home