The TVCRS procedure manipulates the display device cursor. The initial state of the cursor is device dependent. Call TVCRS with one argument to enable or disable the cursor. Call TVCRS with two parameters to enable the cursor and place it on pixel location (X, Y).

Examples


To enable the graphics cursor and position it at device coordinate (100, 100), enter:

TVCRS, 100, 100

To position the cursor at data coordinate (0.5, 3.2), enter:

TVCRS, 0.5, 3.2, /DATA

Syntax


TVCRS [, ON_OFF] [, /CENTIMETERS | , /INCHES] [, /HIDE_CURSOR]

or

TVCRS [, X, Y] [, /CENTIMETERS | , /INCHES] [, /HIDE_CURSOR]

Graphics Keywords: [, /DATA | , /DEVICE | , /NORMAL] [, /T3D | Z=value]

Arguments


ON_OFF

This argument specifies whether the cursor should be on or off. If this argument is present and nonzero, the cursor is enabled. If ON_OFF is zero or no parameters are specified, the cursor is turned off.

X

The column to which the cursor is set.

Y

The row to which the cursor is set.

Keywords


CENTIMETERS

Set this keyword to cause X and Y to be interpreted as centimeters, based on the current device resolution.

INCHES

Set this keyword to cause X and Y to be interpreted as inches, based on the current device resolution.

HIDE_CURSOR

By default, disabling the cursor works differently for window systems than for other devices. For window systems, the cursor is restored to the standard cursor used for non-IDL windows (and remains visible), while for other devices it is completely blanked out. If the HIDE keyword is set, disabling the cursor causes it to always be blanked out.

Version History


Original

Introduced

See Also


CURSOR Procedure, RDPIX Procedure