$202 oddness

BlitzPlus Forums/BlitzPlus Programming/$202 oddness

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.

Hi, it would really help me if you could try the small program below and do the following.

1) click on the red square and keep the mouse button down. 2) Move the mouse to the blue square and let go of the mouse.

Why does eventsource() contain the handle for the red square when letting go of the mouse (the $202 action) happened over the blue square?

Is this a bug or what is expected.
Also, why doesn't $206 work while the mouse button is down?

Thanks a lot!

Global mainwindow=CreateWindow( "$202",50,50,500,300,main,3)

canvas1=CreateCanvas(50,50,100,100,mainwindow)
SetBuffer CanvasBuffer(canvas1):ClsColor 255,0,0:Cls:FlipCanvas canvas1

canvas2=CreateCanvas(350,50,100,100,mainwindow)
SetBuffer CanvasBuffer(canvas2):ClsColor 0,0,255:Cls:FlipCanvas canvas2

While WaitEvent(1)<>$803

	If EventID()=$202
	
		If EventSource()=canvas1 Then Notify "Red Canvas"
		
		If EventSource()=canvas2 Then Notify "Blue Canvas"
	
	EndIf

Wend
End