Sign in Join
FPDoc Onlineexperiment

TApplication.Idle procedure

Member of TApplicationpublicIn unit Forms

Called when the application enters the idle state.

Declaration

pascal
procedure Idle(Wait: Boolean)

Arguments

Wait

Indicates if the method waits for the next message.

Description

Idle is a method used to perform actions when the application enters an idle state. It allows the application to free components pending release, and handle any queued asynchronous requests.

In addition, Idle calls event and application handlers assigned in the class instance. OnIdle is signalled (when assigned). NotifyIdleHandler is called to signal any application handler(s) using the ahtIdle handler type.

The DoIdleActions method is called to update the actions for Visible and Enabled forms, and to hide visible splash screen forms (FormStyle is fsSplash).

When the Wait argument is set to True, the AppWaitMessage method in the widgetset class is called to capture an message on the handles for the application. This action is not performed when Wait is False, or when HasAsyncCallQueued indicates there are unprocessed asynchronous messages pending for the application.

Idle calls the DoOnIdleEnd method to signal the OnIdleEnd event handler and any application handlers using the ahtIdleEnd handler type.

See also

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