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

TWinControl.CanFocus

Is this control allowed to receive the focus?

Declaration

Source position: controls.pp line 2166

public function TWinControl.CanFocus: Boolean; virtual;

Description

A control can get the focus only when all of its Parents except the form are Visible and Enabled. While CanFocus checks all control parents it does not check whether a form control is placed on can have focus.