Changing windows cursor

BlitzMax Forums/BlitzMax Programming/Changing windows cursor

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hidemouse and then load an image drawn at mousex(), mousey()?

Erm, I'm not a newb...please read the post! I was looking for a specific method.

The code below works but sometimes you see the default cursor pop in every once in awhile. Would be cool if that could be fixed.

Graphics 800,600

?win32
	Extern "win32"
		Function LoadCursorFromFileA% (lpFileName$z)
	End Extern
?
cm=LoadCursorFromFileA( "3dgarro.cur" )

While KeyDown(KEY_ESCAPE)=False And AppTerminate()=False
Cls
SetCursor( cm )

Flip
Wend
End