Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - cursor() turn the cursor on or off http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 cursor()            Turn the cursor on or off
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc cursor extern
   param value logical lCursor

 Arguments
   lCursor controls cursor visibility.

 Return
   None.

 Description
   The cursor procedure allows to turn the screen cursor on or off.
   If lCursor is .t., the cursor will be turned on, else off.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_cursor
   vardef
      logical lCursor
   enddef
   lCursor := iscursor()
   cursor( .t. )
   wait "Cursor is on.  Press a key."
   cursor( .f. )
   wait "Cursor is off. Press a key."
   if lCursor
      cursor( .t. )
   endif
   endproc

   proc main
   Test_cursor()
   endproc

See Also: cursoroff() cursoron() iscursor()

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