Vcl.AppEvnts.TCustomApplicationEvents.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 protected
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TCustomApplicationEvents

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: Call the CancelDispatch method from an OnActivate event handler to prevent the application from forwarding the event to any other application events objects.

OnActivate is an event handler of type TNotifyEvent.

See Also

Code Examples