CURLOC

Purpose:

Returns the coordinates of the crosshair cursor in a Window.

Syntax:

CURLOC(win, item, cursor)

(x, y, z) = CURLOC(win, item, cursor)

win

-

Optional. Window reference. Defaults to the current Window.

item

-

Optional. An integer specifying the item number (i.e. series) in the Window. Defaults to 1.

cursor

-

Optional. An integer, the cursor number.

1:

First cursor (default)

2:

Second (delta) cursor

Returns:

Returns the amplitude coordinate of the crosshair cursor.

 

(x, y, z) = CURLOC(Window, item, cursor_num) returns the x, y, and z locations of the crosshair cursor.

Example:

W1: (1..100)^2;curput(10)

(x, y) = curloc(w1)

 

A 100 point series is created in W1 and the cursor is set to the 10th point. The location of the cursor is returned in variables x and y where:

 

 x == 10.0

 y == 100.0

Remarks:

CURLOC returns the actual coordinates of the current position of the crosshair cursor.

 

See CURPOS to return the position as an index.

 

See CURPUT to set the X location of a cursor.

See Also:

COLNMOVE

COLPOS

CURLOCSET

CURMOVE

CURNMOVE

CURPOS

CURPUT

CURSORON

CURXEXTRACT

dadisp.cnf (configuration file)

NUMITEMS