EVENT_MOUSEUP not firing (is this a bug?)

BlitzMax Forums/MaxGUI Module/EVENT_MOUSEUP not firing (is this a bug?)

skn3(Posted 2010) [#1]
Ok I don't know if I am imagining this or whether this is a mac issue (first time using MaxGUI with a mac) but...
Import maxgui.drivers

Local window:TGadget = CreateWindow("test me ",10,10,400,400)
Local canvas:TGadget = CreateCanvas(0,0,ClientWidth(window),ClientHeight(window),window)

SetGraphicsDriver GLMax2DDriver()

AddHook(EmitEventHook,hook,canvas)

While Not AppTerminate()
	WaitEvent()
Wend

Function hook:Object(id:Int,data:Object,context:Object)
		Local event:TEvent = TEvent(data)
		Local canvas:TGadget = TGadget(context)
		
		' + make sure there is event data +
		If event And canvas 
			Select event.id
				Case EVENT_GADGETPAINT
					SetGraphics(canvas.CanvasGraphics())
					Cls
					Flip
				Case EVENT_MOUSEDOWN
					ActivateGadget(canvas)
				Case EVENT_MOUSEUP
					RuntimeError("mouse up")
			End Select
		End If
End Function


...In this example if you follow the steps:
1) click and hold left mouse button on the canvas
2) move the mouse (while still holding left mouse) outside of the canvas
3) release the mouse

The EVENT_MOUSEUP doesn't get fired. I always remember this working on windows, am I imagining this?

If this is a "feature" and not a "fault" are there any other options aside from enabling polled input and using a timer ?

I am using a mac running snow leopard 10.0.6.2 with latest maxgui and blitzmax versions.


skn3(Posted 2010) [#2]
It seems even If I enable polled input that the canvas is capturing the event but just not reporting it.... hmmm?

Any help?