Sign in Join
FPDoc Onlineexperiment

TApplication.OnIdle property

Member of TApplicationpublicIn unit Forms

Event handler signalled when the application enters the idle state.

Declaration

pascal
property OnIdle: TIdleEvent read FOnIdle write FOnIdle;

Description

OnIdle is a TIdleEvent property with the event handler signalled when the application enters the idle state. Assign an object procedure to the event handler to perform actions needed when other window or control messages are not present.

It is signalled from the Idle method, and occurs after released components and asynchronous callbacks have been processed for the application. It occurs before the NotifyIdleHandler method is called to process other application handlers using the ahtIdle type.

Any actions performed in the event handler should have a short duration, and relatively low resource requirements. This will ensure that system performance is not adversely affected, and the application is responsive.

Use OnIdleEnd to perform actions needed when the application leaves the idle state.

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

See also

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