window_set_cursor(curs)

Drag & Drop equivalent : GM106

 

curs = any of the following in built window pointers:

 

cr_default, 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, cr_none

 

Example

window_set_cursor(cr_handpoint);

 

This allows you to change the default window pointer in your game to another. The example above will change the window pointer into a hand with a pointing finger. This next example:

 

window_set_cursor(cr_help);

 

will turn the pointer into an arrow with a question mark beside it (indicating Windows in built Help pointer). You can change the pointer back to whatever it was before you changed it (even if you didn't know what it originally was) by using:

 

window_set_cursor(cr_default);

 

If you wish to turn the pointer off altogether, you use cr_none:

 

window_set_cursor(cr_none);

 

Note: You cannot set the pointer to an object by using: window_set_cursor(object), you have to use one of the in built pointers using this method.

 

Revision #1