Vcl.Forms.TScreen.OnActiveControlChange
Delphi
property OnActiveControlChange: TNotifyEvent read FOnActiveControlChange write FOnActiveControlChange;
C++
__property System::Classes::TNotifyEvent OnActiveControlChange = {read=FOnActiveControlChange, write=FOnActiveControlChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TScreen |
Description
Occurs immediately after input focus changes to a new windowed control.
Write an OnActiveControlChange event handler to take specific action when input focus changes to a new control. The change in focus may be within the active form, or across forms to a new form that then becomes the active form.
When focus moves from one control to another, the following events occur.
1If the new focused control is in a different form, focus moves to the new form.
2Focus moves to the new active control.
3If the active form changed, an OnActiveFormChange event occurs.
4An OnActiveControlChange event occurs.
See Also
Code Examples