QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _MOUSESHOW statement displays the mouse cursor and can change its shape.

Syntax

_MOUSESHOW [cursorShape$]

Description

QBasic/QuickBASIC

_MOUSESHOW “DEFAULT” can be used after a mouse cursor statement above was previously used.

Example(s)

Special cursors can be displayed by using special string parameters:


_MOUSESHOW "default": _DELAY 0.5
_MOUSESHOW "link": _DELAY 0.5 'a hand, typically used in web browsers
_MOUSESHOW "text": _DELAY 0.5
_MOUSESHOW "crosshair": _DELAY 0.5
_MOUSESHOW "vertical": _DELAY 0.5
_MOUSESHOW "horizontal": _DELAY 0.5
_MOUSESHOW "topleft_bottomright": _DELAY 0.5
_MOUSESHOW "topright_bottomleft": _DELAY 0.5 
_MOUSESHOW "wait": _DELAY 0.5
_MOUSESHOW "help": _DELAY 0.5

Note: The hourglass and question mark cursors are available in v1.5 and above.

See Also