Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>mousecol()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MouseCol()
Return the column position of a mouse click
------------------------------------------------------------------------------

Syntax
MouseCol()   -->   nColumn

Arguments
None.

Returns
An integer representing the column co-ordinate of the mouse at
the time of the click (or double click).

Description
This function returns the column position of the mouse cursor
at the time of the click or double click, relative to the
window containing the mouse cursor.  (The position is
calculated from the pixel co-ordinate of the mouse click,
using the size of the window in fixed-font characters.)

Note:  this function should only be called when you have just
retrieved an event indicating a mouse click.

Example
// Put an X where the mouse was clicked
@ MouseRow(), MouseCol()  say  "X"

See Also: GetCaretX() MouseRow() MouseX()

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