Vcl.AppEvnts.TApplicationEvents.OnActivate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;

C++

__property OnActivate;

Properties

Type Visibility Source Unit Parent
event published
Vcl.AppEvnts.pas
Vcl.AppEvnts.hpp
Vcl.AppEvnts TApplicationEvents

Description

Occurs when an application becomes active.

Vcl.AppEvnts.TApplicationEvents.OnActivate inherits from Vcl.AppEvnts.TCustomApplicationEvents.OnActivate. All content below this line refers to Vcl.AppEvnts.TCustomApplicationEvents.OnActivate.

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