Custom Mouse Pointer

BlitzMax Forums/BlitzMax Programming/Custom Mouse Pointer

gameshastra(Posted 2007) [#1]
Hi,
How can I change the mouse pointer to take a custom bitmap as input and not one of the predefined values. I am using MaxGUI Any help will be greatly appreciated.
Regards,
D.Ramesh


ImaginaryHuman(Posted 2007) [#2]
You can only change the mouse pointer that would appear inside a canvas, I think? .... by hiding the real mouse and then drawing an image at MouseX(),MouseY()


AltanilConard(Posted 2007) [#3]
Graphics 800,600
HideMouse()
Repeat
	DrawRect(MouseX(),MouseY(),10,20)
	Flip
	Cls
Until KeyHit(KEY_ESCAPE)

Ofcourse you will have to draw an image instead of a rectangle, but it shows the idea.


GfK(Posted 2007) [#4]
Won't work in a MaxGUI window.


AltanilConard(Posted 2007) [#5]
Ah sorry, my bet, it's just that I saw the same thread in the GUI Programming section to I thought this one would be without gui.