Mouse Down/Up/Enter/Leave - window or canvas

BlitzPlus Forums/BlitzPlus Programming/Mouse Down/Up/Enter/Leave - window or canvas

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.

Is there a way to tell whether the mouse events involve a canvas or window?

If EventID() = $205
	SetBuffer CanvasBuffer(EventSource())
	DrawImage helpBtn, 0, 0, 1
        FlipCanvas(EventSource())
End If


In this i want it to only happen when it's a canvas. How do i tell the difference between a window and canvas in this sort of example?