RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Forms.TIdleEvent Type

TIdleEvent is the type of event handler that perform actions when the application is idle.

Pascal
TIdleEvent = procedure (Sender: TObject; var Done: Boolean) of object;
C++
(Sender: TObject; var Done: Boolean) ( TIdleEvent)();

The TIdleEvent type is the type of the OnIdle event.  

Sender is the object that receives the event notification. Typically, this is the application object.  

Done indicates whether the event handler has finished its background processing.  

If the event handler exits when Done is true, all action components are then given a chance to update themselves and, on Windows, the application yields control to Windows until a new message appears in the application's message queue. When Done is false, any action components in the application are not allowed to update themselves when the event handler exits and, on Windows, the application does not explicitly yield control to the operating system. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!