eventx() using a timer

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

CS_TBL(Posted 2004) [#1]
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!


soja(Posted 2004) [#2]
There is no EventX data for $4001.

Er... use event $203?
Try MouseX converted to canvas client coodinates?
Use PeekEvent?