[Mono-bugs] [Bug 419001] New: System.Windows.Forms.Control. get_MouseButton is brokein in X11 and X11GTK
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Aug 20 19:01:58 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=419001
Summary: System.Windows.Forms.Control.get_MouseButton is brokein
in X11 and X11GTK
Product: Mono: Class Libraries
Version: SVN
Platform: x86
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: offer at zingo.org
QAContact: mono-bugs at lists.ximian.com
Found By: Community User
Short version:
--------------
System.Windows.Forms.Control.get_MouseButtons() don't work to fix this
the following code can be added:
internal override MouseButtons MouseButtons {
get {
return MouseState;
}
}
To System.Windows.Forms.XplatUIX11.cs and System.Windows.Forms.XplatUIX11GTK.cs
One might want to fix it in the carbon driver also.
Long version:
-------------
System.Windows.Forms.Control.get_MouseButton() ends up in
System.Windows.Forms.XplatUI.get_MouseButton() that uses the XplatUIDriver in
my case XplatUIX11 but since XplatUIX11 record mouse button status in
MouseState and there is no override for MouseButtons the defult one is called
in XplatUIDriver that allways return "None" so mouse buttons can be read this
way on Linux (or Carbon?)
In the X11 based drivers the override on MouseButtons above fixes the problem.
----------
Maybe other overrides are also needed for other properties? MousePosition
seems broken but since I don't have trouble with this in the app (SportTrack) I
try to get working Im not sure.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list