FMX.StdCtrls.TSwitch.CanFocus

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CanFocus: Boolean read FCanFocus write FCanFocus default 1;

C++

__property CanFocus = {default=1};

Properties

Type Visibility Source Unit Parent
property published
FMX.StdCtrls.pas
FMX.StdCtrls.hpp
FMX.StdCtrls TSwitch

Description

Specifies whether the current control can receive focus.

FMX.StdCtrls.TSwitch.CanFocus inherits from FMX.Controls.TControl.CanFocus. All content below this line refers to FMX.Controls.TControl.CanFocus.

Specifies whether the current control can receive focus.

CanFocus is True if it can receive focus, and False otherwise.

If it is set to False, the control cannot be selected when using the TAB key.

A control can receive focus after it is created.

See Also