Class TIdleAction (unit Idler)

Inherits from

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);

--------------------------------------------------------------------- end class TIdlerList ---------------------------------------------------------------------} {--------------------------------------------------------------------- class TIdleAction ---------------------------------------------------------------------


Functions

function CanTrigger: Boolean;

function CanTrigger: Boolean controls whether this idle action is called when the application is idle.

destructor Destroy;

add self to idler list

procedure DoTrigger;

procedure DoTrigger always calls OnTrigger if it exists.

Properties

property Enabled : Boolean

property Enabled determines if this idler is enabled

Events

event OnTrigger : TNotifyEvent

event OnTrigger idler event; called whenever the application is idle and this idle action is enabled

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 : Boolean

property Enabled determines if this idler is enabled


Events


event OnTrigger : TNotifyEvent

event OnTrigger idler event; called whenever the application is idle and this idle action is enabled


Variables


FEnabled : Boolean;


FOnTrigger : TNotifyEvent;