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>place cursor state on the stack, optionaly change state</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Place cursor state on the stack, optionaly change state
------------------------------------------------------------------------------

 Syntax

        GT_PUSHCUR([<nNewState>]) -> <nOldState>

 Arguments:

      <nNewState> is a numeric constant which identifies the new cursor
                  state.  Manifest constants from setcurs.ch are
                  recommended.

 Returns:

      <nOldState> is the state of the cursor before any changes are
      applied.

 Description:

      This function pushes the current cursor state onto a stack, and then
      optionaly changes the state.  To restore the cursor is simply a
      matter of 'popping' the stack by calling GT_POPCUR().

      It is important to pop the stack as many times as you push it,
      otherwise you may get the wrong cursor shape back.

 Examples:

      GT_PUSHCUR(SC_NONE)   // push cursor and turn it off
        ..code..            // do something, maybe display a message
        ...
      GT_POPCUR()           // restore cursor

 Header File: SETCURS.CH  GT_LIB.CH

 Source: GTCURS.PRG

 Author:  Philip Ide

See Also: GT_POPCUR()

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