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 - ismouseon() determine if the mouse cursor is visible http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ismouseon()         Determine if the mouse cursor is visible
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   func logical ismouseon extern

 Arguments
   None.

 Return
   A logical indicating the visibility state of the mouse.

 Description
   The ismouseon() reports the mouse visibility status. It returns .t.
   if the mouse cursor is visible, or .f. otherwise.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_ismouseon
   ? "Mouse is", iifc( ismouseon(), "on", "off" )
   wait
   if mouseavail()
      mouseon()
      ? "Mouse is", iifc( ismouseon(), "on", "off" )
      wait
      mouseoff()
      ? "Mouse is", iifc( ismouseon(), "on", "off" )
      wait
   endif
   endproc

   proc main
   Test_ismouseon()
   endproc

See Also: mouseoff() mouseon()

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