CURPOSSET

Purpose:

Sets the cursor index positions of one or more windows based on a source window.

Syntax:

CURPOSSET(srcwin, deswin1, deswin2, ..., deswinN)

srcwin

-

A window. The source window to obtain the X locations of the first and second cursors.

deswinN

-

Optional, zero or more Windows. The target windows. If not specified, defaults to the current window.

Returns:

Nothing, the index positions of cursor 1 and cursor 2 of each destination window is set to the positions of the source window.

Example:

W1: integ(gnorm(1000, 1/1000));curnput(100);curnput(700, 1, 2)

W2: integ(gnorm(1000, 1/1000));curposset(w1)

 

W1 contains 1000 point random series. The first cursor position of W1 is set to index 100 and the second cursor position is set to index 700. W2 contains a 1000 point random series where the position of cursor 1 is set to index 100 and the position of cursor 2 is set to index 700.

Example:

W1: integ(gnorm(1000, 1/1000));curnput(200);curnput(800, 1, 2)

W2: integ(gnorm(1000, 1/1000))

W3: integ(gnorm(1000, 1/1000))

 

curposset(w1, w2, w3)

 

W1 through W3 contain 1000 point random series.  The first cursor position of W1 is set to index 200 and the second cursor position is set to index 800. The cursor positions of W2 and W3 are set to indices 200 and 800.

Remarks:

If no target window is specified, the cursor locations of the current window are set to the source window.

 

See CURLOCSET to set the X locations of cursors based on a source window.

 

See CUREXTRACT to extract multiple windows based on the index positions of the source window cursors.

See Also:

CURLOCSET

CURNPUT

CURPOS

CUREXTRACT