Hi all
Another silly question, but I tried to search for it on the forums and couldn,t find the answer. So could anyone please explain to me what I'm doing wrong ?
Thanks
`******************************************************************
`******************************************************************
`Trying to draw a box, but can't figure out how to store
`the old mousex co-ordinates !!!!!!!!!!
x=320
do
cls
` x1=mousex()
` y1=mousey()
x2=mousex()
y2=mousey()
if mouseclick()=1
box x1-oldx,y1-oldy,x2,y2
endif
oldx=mousex()
oldy=mousey()
center text x,y,"Mouse X : "+str$(mousex())
center text x,y+20,"Mouse Y : "+str$(mousey())
loop