Sign in Join
FPDoc Onlineexperiment

TApplicationProperties.OnActivate property

Member of TApplicationPropertiespublishedIn unit Forms

Event handler signalled when an Activate message is handled in the application.

Declaration

pascal
property OnActivate: TNotifyEvent read FOnActivate write SetOnActivate;

Description

OnActivate is a TNotifyEvent property with the event handler signalled when an Activate message is handled for the application.

OnActivate is signalled from the NotifyActivateHandler method, which occurs when the Activate method is called for the application. The event handler is also signalled (via Activate) from the WMActivate method in TCustomForm to ensure that the application is activated before one of its forms is updated in the task bar.

Use the OnDeactivate event handler to perform actions needed when the main form in an application is de-activated.

Use the TApplicationProperties class to assign properties and event handlers at design-time that are applied to the application instance at run-time.

This description is the one of Forms.TApplication.OnActivate.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.