[Mono-bugs] [Bug 80209][Nor] Changed - UserControl.OnEnter, OnLeave are not called when the user clicks on controls

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 16 03:27:08 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by toshok at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80209

--- shadow/80209	2006-12-31 21:41:05.000000000 -0500
+++ shadow/80209.tmp.24303	2007-01-16 03:27:08.000000000 -0500
@@ -63,6 +63,18 @@
 Always.
 
 ------- Additional Comments From georgegiolfan at yahoo.com  2006-12-31 21:41 -------
 Created an attachment (id=18421)
 Proposed patch. I'm not sure this is the way to do it.
 
+
+------- Additional Comments From toshok at ximian.com  2007-01-16 03:27 -------
+it's not, it doesn't happen on Click.  It happens on MouseDown.
+
+the stack trace from OnEnter on MS looks like OnMouseDown in
+UserControl calls Control.FocusInternal.  But our implementation of
+that method (or things it calls) is lacking, so it's not enough to
+just add that call.
+
+From what I can gather from the way things are working, ContainControl
+reacts when one of its children (or maybe just itself) gets focused,
+and when that happens it (in a roundabout way) calls OnEnter on it.


More information about the mono-bugs mailing list