cursor

BlitzMax Forums/BlitzMax Programming/cursor

drnmr(Posted 2006) [#1]
is it possible to replace the mouse cursor without using cls?


degac(Posted 2006) [#2]
Do you mean the command MoveMouse x,y?


drnmr(Posted 2006) [#3]
the code would normally be like this:

I'm trying to do it without Cls.


degac(Posted 2006) [#4]
Ok. Now I understand. You want to use a own cursor image...(I suspect in Bmax standard, not with MaxGUI)
I'm sorry but I think that you need a cls/flip to update the cursor movement without drawing it on screen.
Or you could redraw all the screen ONLY when you move the mouse, but is the same story...


BlackSp1der(Posted 2006) [#5]
maybe it can help you, but the correct way is to draw all the screen.

HideMouse
   Xold=MouseX(); Yold=MouseY()
   GrabImage restoreback,Xold,Yold
While Not KeyDown(key_escape)
   DrawImage restoreback,Xold,Yold
'.
'.
'.
'.
   Xold=MouseX(); Yold=MouseY()
   GrabImage restoreback,Xold,Yold
DrawImage newcursor, Xold,Yold
Flip
Wend