Changing the mouse pointer

BlitzMax Forums/BlitzMax Beginners Area/Changing the mouse pointer

Does anyone know how to change the mouse pointer to a TImage "object"?

Thank you.

Sure

Use HideMouse() to hide the windows pointer, and position an image using the current mouse coorinates. You can obtain the current mouse position with MouseX() and MouseY()

stupid me forgot to flip it, doh!

Graphics 640, 480
image:TImage = LoadImage("images/pointer.png", MASKEDIMAGE)

HideMouse()
While Not KeyHit(KEY_ESCAPE)
Cls
DrawImage image, MouseX(), MouseY()
Flip
Wend