Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>m_region() - check if mouse cursor is in specified region</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_region() - check if mouse cursor is in specified region
  Usage:    <logical> = m_region(<trow>,<lcol>,<brow>,<rcol>)
  Params:   integer <trow> - top row value
            integer <lcol> - left column value
            integer <brow> - bottom row value
            integer <rcol> - right column value
  Returns:  .T. if the mouse cursor is within the defined screen
            coordinates, .F. if not.

 ---------------------------------- Example ---------------------------------

                 box(10,10,20,50,23,1,8)

                 do while .T.
                      if m_region(10,10,20,50)
                           box(10,10,20,50,113,1,8)
                      else
                           box(10,10,20,50,23,1,8)
                      endif
                 enddo

            In this example, if the mouse cursor is with the same region of
            the screen as the box drawn, then the box is redrawn in
            another color.


See Also: m_row() m_col() m_aregion() m_incol() m_inrow()

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