Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>get/set block for screen saver interrupts</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GET/SET block for screen saver interrupts
------------------------------------------------------------------------------

 Syntax

        GT_Interrupt([{|| bInterrupt} ]) -> NIL | bOldInterrupt

 Arguments:

      <bInterrupt> This optional parameter replaces the current interrupt
                   trapping block. This block should return TRUE or FALSE
                   and will be evaluated by other modules in order to
                   determine how the user can interrupt their processing.

 Returns:

      bOldInterrupt - The function returns the currently active interrupt
                      block.  When this block is Evaluated, it will return
                      TRUE or FALSE indicating whether the user has
                      interrupted the current process.

 Description:

      Get-Set function that stores and returns a codeblock which is used to
      interrupt screen savers and other tasks. Screen savers should
      interrogate the functions return to see when they should stop rather
      than using inkey(), mouseclick() etc. The default interrupt block
      is {|| inkey() > 0 }.

 Examples:

      GT_Interrupt( {|| Inkey() > 0 .or. MouseClick() > 0 } )
          --> bOldInterrupt

 Source: GT_INTER.PRG

 Author:  Phillip Hamlyn

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson