Vcl.Forms.TApplication.OnActivate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;

C++

__property System::Classes::TNotifyEvent OnActivate = {read=FOnActivate, write=FOnActivate};

Properties

Type Visibility Source Unit Parent
event public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TApplication

Description

Occurs when an application becomes active.

Write an OnActivate event handler to perform special processing when the application becomes active.

An application becomes active when it is initially run or when focus moves from another Windows application back to any window of the application.

Note: You can also respond to this event using the TApplicationEvents component, which allows you to assign an event handler using the IDE.

See Also

Code Examples