XLoc

(Engine-Level Function)

Description: Returns the X window coordinate of the locator (mouse).
Returns: Numeric
Usage: Script or steady state.
Function Groups: Graphics,  Locator,  Window
Related to: SetXLoc | SetYLoc | WinXLoc | WinYLoc | YLoc
Format: XLoc()
Parameters: None

Example:

ZBox(10, YLoc(), XLoc(), 10, 11);

This statement will draw a box in the window whose upper left corner is fixed at (10, 10), but whose lower right corner follows the mouse.