|Navigation: Language Reference > 13 - Built-in Functions >====== MOUSEX (return mouse horizontal position) ======|
The MOUSEX procedure returns a numeric value corresponding to the current horizontal position of the mouse cursor at the time of the event. The position is relative to the origin of that window.
The default return value is in dialog units, unless modified by the PROP:Pixels property. If the PROP:Pixels property is set to TRUE (1), the return value of MOUSEX is expressed in pixels.
|Return Data Type:||SIGNED|
SaveMouseX = MOUSEX() !Save mouse position