_MOUSESHOW

From QB64 Wiki
Jump to navigation Jump to search

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


Syntax

_MOUSESHOW [cursorShape$]


Description

  • Simply use the statement without a parameter whenever _MOUSEHIDE has been used previously.
  • The following cursorShape$ can be displayed:
_MOUSESHOW "LINK" will display an upward pointing hand cursor used to denote hypertext
_MOUSESHOW "TEXT" will display the I cursor often used in text entry areas
_MOUSESHOW "CROSSHAIR" will display a crosshair cursor
_MOUSESHOW "VERTICAL" will display vertical arrow cursor for movement
_MOUSESHOW "HORIZONTAL" will display horizontal arrow cursor for movement
_MOUSESHOW "TOPLEFT_BOTTOMRIGHT" will display bottom diagonal arrow cursor for movement
_MOUSESHOW "TOPRIGHT_BOTTOMLEFT" will display bottom diagonal arrow cursor for movement
_MOUSESHOW "WAIT" will display an hourglass or spinning circle used to indicate the program is busy with a task
_MOUSESHOW "HELP" will display a question mark cursor used to denote more information available
_MOUSESHOW "DEFAULT" can be used after a mouse cursor statement above was previously used.

Examples

Example 1: 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



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page