API:Vcl.AxCtrls.TPropertyPage.ActiveControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ActiveControl: TWinControl read FActiveControl write SetActiveControl stored IsForm;

C++

__property ActiveControl;

Properties

Type Visibility Source Unit Parent
property published
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TPropertyPage

Description

Specifies the control that has focus on the form.

Vcl.AxCtrls.TPropertyPage.ActiveControl inherits from Vcl.Forms.TCustomForm.ActiveControl. All content below this line refers to Vcl.Forms.TCustomForm.ActiveControl.

Specifies the control that has focus on the form.

Use ActiveControl to get or set the control that has focus on the form. Only one control can have focus at a given time in an application.

If the form does not have focus, ActiveControl is the control on the form that will receive focus when the form receives focus.

Note: When focus shifts to another control, ActiveControl is updated before the OnExit event occurs.

See Also

Code Examples