[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_IAMIDLE()
 Inform the operating system that the application is idle.
------------------------------------------------------------------------------

 Syntax

     FT_IAmIdle() -> lSuccess

 Arguments

    None

 Returns

    .T. if supported, .F. otherwise.

 Description

    Some multitasking operating environments (e.g. Windows or OS/2) can
    function more efficiently when applications release the CPU during
    idle states.  This function allows you "announce" to the operating
    system that your application is idle.

    Note that if you use this function in conjunction with FT_OnIdle(),
    you can cause Clipper to automatically release the CPU whenever
    Clipper itself detects an idle state.

 Examples

    while inkey() != K_ESC
       FT_IAmIdle()         // Wait for ESC and announce idleness
    end

    * Here's another way to do it:

    FT_OnIdle( {|| FT_IAmIdle()} )

    Inkey( 0 )              // Automatically reports idleness until key
                            // is pressed!

 Source: IAMIDLE.ASM

 Author: Ted Means

See Also: FT_OnIdle()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson