API:Vcl.ActnMenus.TCustomActionMainMenuBar.CanFocus

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanFocus: Boolean; override;

C++

DYNAMIC bool __fastcall CanFocus();

Properties

Type Visibility Source Unit Parent
function public
Vcl.ActnMenus.pas
Vcl.ActnMenus.hpp
Vcl.ActnMenus TCustomActionMainMenuBar

Description

Indicates whether a control can receive focus.

Vcl.ActnMenus.TCustomActionMainMenuBar.CanFocus inherits from Vcl.Controls.TWinControl.CanFocus. All content below this line refers to Vcl.Controls.TWinControl.CanFocus.

Indicates whether a control can receive focus.

Call CanFocus to find out if the control can receive input from the user.

CanFocus returns true if both the control and its parent(s) have their Visible and Enabled properties set to true. If any of the Visible and Enabled properties of the control or the controls in which it is contained are not true, then CanFocus returns false.

See Also