| Class TIdleAction (unit Idler) |
TComponent
Idler.pas (c) 1996 Dwayne Mercredi declares Class TIdleAction class TIdleAction: uses application idle time; use the OnTrigger event to do any polling or low priority code and it will be called whenever the App is idle. IdleEventHandler points to the idle event handler that is associated with Application.OnIdle
| Constructors |
constructor Create(AOwner: TComponent);| Functions |
function CanTrigger: Boolean;
destructor Destroy;
procedure DoTrigger;| Properties |
property Enabled : Boolean| Events |
event OnTrigger : TNotifyEvent| Variables |
FEnabled : Boolean;
FOnTrigger : TNotifyEvent;| Constructors |
constructor Create(AOwner: TComponent);--------------------------------------------------------------------- end class TIdlerList ---------------------------------------------------------------------} {--------------------------------------------------------------------- class TIdleAction ---------------------------------------------------------------------
| Functions |
function CanTrigger: Boolean;function CanTrigger: Boolean controls whether this idle action is called when the application is idle. Returns Enabled for TIdleAction
call associated event
destructor Destroy;add self to idler list
procedure DoTrigger;procedure DoTrigger always calls OnTrigger if it exists. Called whenever CanTrigger returns True while the Application is idle
destroy
| Properties |
property Enabled : Booleanproperty Enabled determines if this idler is enabled
| Events |
event OnTrigger : TNotifyEventevent OnTrigger idler event; called whenever the application is idle and this idle action is enabled
| Variables |
FEnabled : Boolean;
FOnTrigger : TNotifyEvent;