Window_set_cursor - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Sets the mouse cursor. The changed mouse cursor only applies when the mouse is over the ENIGMA window.

Parameters

  • curs: The new cursor. Valid constants are:

cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_nodrop cr_hsplit cr_vsplit cr_multidrag cr_sqlwait cr_no cr_appstart cr_help cr_handpoint cr_size_all

Using cr_none will hide the cursor. cr_drag is currently unimplemented. Some of these cursors may appear different in ENIGMA than GM due to the fact that Delphi includes some of its own cursor icons.

Return Values

Returns 1 if the argument was a valid cursor, otherwise it returns 0.

Example Call

// The cursor will now be a hand when the mouse is over the ENIGMA window
window_set_cursor(cr_handpoint);