DADiSP Worksheet Functions > Function Categories > Cursor Functions > CURSORON

 

CURSORON

Purpose:

Places a set of crosshairs, or cursor, on the current series and returns point values at the bottom of the screen (same as using the [F9] key in an activated Window).

Syntax:

CURSORON(stick)

stick

-

Optional. An integer, the initial cursor behavior:

0:

cursor moves immediately with the mouse (default)

1:

cursor "sticks" and the initial position

Returns:

Changes to cursor mode: arrow keys are active and current point value is displayed at bottom of screen.

Example:

W1:gsin(128, 1/128, 4)

cursoron

 

activates the crosshair cursor. The cursor will immediately track mouse movements.

Example:

W1:gsin(128, 1/128, 4)

cursoron(1)

 

Same as above except the cursor does not track the mouse until the mouse has been left clicked.

Remarks:

The cursor is a set of crosshairs placed on the series. When the cursor mode is on, the command line is disabled.

 

If stick is set to 1, the cursor initially ignores mouse movements. Left clicking the mouse causes the cursor to respond to mouse movements when the Window is active.

See Also:

CURPOS

CURPOS2