Topic Path: Symbol Reference > Classes > TIdAntiFreezeBase Class > TIdAntiFreezeBase Properties > OnlyWhenIdle Property
TIdAntiFreezeBase.OnlyWhenIdle Property

Specifies the component should yield when the main thread is idle.

property OnlyWhenIdle: Boolean;

OnlyWhenIdle is a Boolean property that indicates when TIdAntiFreezeBase should yield when the Application main thread is idle. Set OnlyWhenIdle to True to prevent the component from yielding when the application main thread is not idle in DoProcess. Set OnlyWhenIdle to False to allow the component to yield when ShouldUse is True. 

The default value for OnlyWhenIdle is ID_Default_TIdAntiFreezeBase_OnlyWhenIdle, as assigned during VCL component streaming and in the Create constructor.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.