[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetIdleAction( bIdleAction )-> <nil>
------------------------------------------------------------------------------
PARAMETER:
<bIdleAction> Is a codeblock to execute during idle periods. If
SetIdleAction() is called without parameters, it will
stop any previously defined idle action.
DESCRIPTION:
SetIdleAction will launch a defined action every time that windows
is in an Idle state. It is very important that you don't process large
and time consuming functions here, or you will freeze the system !
Don't confuse idle periods with timers. Idle periods are those during
there are no pending messages to process. As soon as the application
starts processing messages again, all idle actions are paused.
EXAMPLE:
+--------------------------------------------------------------+
| /* Play a tone during Idle Actions */ |
| SetIdleAction( { || tone( 1000, 1 ) } ) |
| [ .. ] |
| /* Cancel the action */ |
| SetIdleAction() |
+--------------------------------------------------------------+
See Also:
Timer
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson