Vcl.Forms.TForm.OnActivate
Delphi
property OnActivate: TNotifyEvent read FOnActivate write FOnActivate stored IsForm;
C++
__property OnActivate;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TForm |
Description
Occurs when the form becomes active.
Vcl.Forms.TForm.OnActivate inherits from Vcl.Forms.TCustomForm.OnActivate. All content below this line refers to Vcl.Forms.TCustomForm.OnActivate.
Occurs when the form becomes active.
Use OnActivate to perform special processing when the form receives focus. A form becomes active when focus is transferred to it (when the user clicks on the form, for example).
Note: The OnActivate event of the application (TApplication), not the form, occurs when Windows switches control from another application.
See Also
Code Examples