FocusControl Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Specifies the form control associated with the label.

Declaration

componentObj.FocusControl
Read-Write Property A user form component
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxLabel

Description

Use the FocusControl property to obtain or specify the form control associated with the given label. The associated control receives the input focus when the user presses the label’s access key while holding the Alt key. You can use this feature to provide quick access to such form controls as text boxes, combo boxes, and others via the keyboard.

To include the access key in the label text, precede the desired character in the label’s Caption text with an ampersand (&) and set the ShowAccelChar property to True.

Property Value

A form control (that is, any component except for TOpenDialog and TSaveDialog) associated with the given label.

See Also

Caption Property
ShowAccelChar Property

Highlight search results