Changing the mouse pointer

BlitzMax Forums/BlitzMax Beginners Area/Changing the mouse pointer

Pavlov(Posted 2005) [#1]
Does anyone know how to change the mouse pointer to a TImage "object"?

Thank you.


MattC(Posted 2005) [#2]
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()


Pavlov(Posted 2005) [#3]
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