[Mono-bugs] [Bug 657478] New: .netifiying Mouse Events
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 3 14:36:07 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=657478
https://bugzilla.novell.com/show_bug.cgi?id=657478#c0
Summary: .netifiying Mouse Events
Classification: Mono
Product: MonoMac
Version: GIT
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Bindings
AssignedTo: gnorton at novell.com
ReportedBy: jclancey at resdat.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
I am trying to come up with a way to create .net Mouse Events for the NSViews.
In an Ideal world I would just do the following:
public class View : NSView
{
public MouseEventHandler MouseDown { get; set; }
public override void MouseDown (NSEvent theEvent)
{
PointF point =
this.ConvertPointfromView(theEvent.LocationInWindow,null);
if (this.MouseDown != null)
this.MouseDown (this, new MouseEventArgs (MouseButtons.Left,
theEvent.ClickCount, (int)point.X, (int)point.Y, 0));
base.MouseDown (theEvent);
}
}
As you can see the names are the same for the event and the cocoa method. You
can have the event on the NSView, But the moment you override the
base.MouseDown compile time errors appear. Maybe we could rename the
MouseDown events for the NSView? Maybe make them specific. There is already
RightMouseDown and MouseDown only fires for the left mouse button. So
LeftMouseDown would be consistant.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list