SetCursor
SetCursor

Changes the cursor's appearance

bSuccess = myMouseKeyboard.SetCursor( Cursor_Type )
bSuccess = myMouseKeyboard.SetCursor( Image, HotSpot_X, HotSpot_Y, Transparent_Color )

Return value
TRUE if successful, otherwise FALSE.

Parameters
  • Cursor_Type
    One of the standard cursor types from the Window object
  • Image
    Either a surface, or the name / index of a picture in the bank
  • HotSpot_X
    The X coordinate of the hotspot. Default is 0
  • HotSpot_Y
    The Y coordinate of the hotspot. Default is 0
  • Transparent_Color
    The colour to use as transparent. Default is 0x000000 (black)
Comments

This function is similar to Window.SetCursor, but image names can be used, not just surfaces.

See also
MouseKeyboard:ShowMousePointer
MouseKeyboard:HideMousePointer



JAM © 2005 no one in particular
Project started by David Evans in 2005