[Mono-osx] Unable to override MouseDown method

De Santis Luca farolfo at hotmail.com
Wed Aug 15 14:46:52 UTC 2012


I'm writing an OpenGL application. I need intercept the mouse events and I override these functions:


public override void MouseDown (NSEvent theEvent)
{
	Point pt= GlobalGraphic.Instance.FromMacScreenPoint(theEvent.LocationInWindow);
	this.TSTouch(pt);
}
		
public override void MouseUp (NSEvent theEvent)
{
	Point pt= GlobalGraphic.Instance.FromMacScreenPoint(theEvent.LocationInWindow);
	this.TSRealease(pt);
}
		
public override void MouseDragged (NSEvent theEvent)
{
	Point pt= GlobalGraphic.Instance.FromMacScreenPoint(theEvent.LocationInWindow);
	this.TSDrag (pt);
}


MouseUp and MouseDragged works well, but the function MouseDown is never called when I click with the mouse on the window.


I saw that this bug has been reported:


https://bugzilla.xamarin.com/show_bug.cgi?id=6067


Do you know if this problem is also extended to the windows as well as to NSOutlineView and NSTableView?
Regards
Luca 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120815/e11f79ad/attachment.html>


More information about the Mono-osx mailing list