| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== MOUSEX (return mouse horizontal position) ====== | [[month return month of date .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[mousey return mouse vertical position .htm|{{btn_next_n.gif|Next page}}]] | | || **MOUSEX( )** {{blk2blue.jpg|blk2blue.jpg}} 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.htm|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 | **Example:** **SaveMouseX = ****MOUSEX()   ****!Save mouse position** **See Also:** [[mousey return mouse vertical position .htm|MOUSEY]]