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_incol() - mouse cursor column at last button press</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_incol() - mouse cursor column at last button press
  Usage:    <integer> = m_incol()
  Params:   none
  Returns:  integer equal to the mouse cursor column position when the
            user last pressed or released a button while waiting for
            mouse input.

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

                 print(0,0,"Point at your choice and click left button)
                 m_inbutton(0)
                 use testfile index names
                 if ((m_incol() = 10) .and. (m_inrow() = 10))
                      seek "HARDY HAR HAR"
                 else
                      seek "ZIPPITY DOO DAH"
                 endif

            This avoids the user moving the mouse between the time
            they clicked and the time you check the row and col

  Note:     If you have a mousetrap() set, the m_incol() and m_inrow()
            function will return the row/col coordinates of the mouse
            cursor when they clicked the mouse button, even if you are
            in a wait state. Any time the mouse is clicked while waiting
            for input, the mouse coordinates are saved.


See Also: m_inbutton() m_inrow() m_row() m_col()

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