eventx() using a timer

BlitzPlus Forums/BlitzPlus Programming/eventx() using a timer

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.

ok, maybe an old Q, but I'm in the situation right now:

; run in debugmode !
window=CreateWindow("",0,0,400,400)

canvas=CreateCanvas(0,0,200,200,window)

timer=CreateTimer(20)
Repeat
	WaitEvent()
	If EventID()=$803 End
	
	If EventID()=$4001 blah()
Forever
End

Function blah()
	DebugLog EventX()
End Function



I want a proper eventx/y readout when moving my mouse over the canvas.. and because of that timer it doesn't work!