Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

DISPLAYCURSOR

Graphics Function: Controls cursor visibility. This routine is only available for Windows.

Module

USE IFQWIN

result = DISPLAYCURSOR (toggle)

toggle

(Input) INTEGER(2). Constant that defines the cursor state. Has two possible values:

  • $GCURSOROFF - Makes the cursor invisible regardless of its current shape and mode.

  • $GCURSORON - Makes the cursor always visible in graphics mode.

Results

The result type is INTEGER(2). The result is the previous value of toggle.

Cursor settings hold only for the currently active child window. You need to call DISPLAYCURSOR for each window in which you want the cursor to be visible.

A call to SETWINDOWCONFIG turns off the cursor.