[Mono-bugs] [Bug 77356][Nor] New - TreeView callbacks don't fire on mouse input

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 25 15:38:16 EST 2006

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 don at edvalson.net.


--- shadow/77356	2006-01-25 15:38:16.000000000 -0500
+++ shadow/77356.tmp.4471	2006-01-25 15:38:16.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 77356
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: WIndows XP, OSX X11
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: don at edvalson.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: TreeView callbacks don't fire on mouse input
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem: The TreeView callbacks OnBeforeCheck and 
+OnAfterCheck only work if you check or uncheck the line using the 
+keyboard spacebar. If you click on them with a mouse, they do not fire.
+Steps to reproduce the problem:
+1. Make a form with a treeview on it with at least one item and a checkbox
+2. Navigate to the item. Press the space bar, the events fire
+3. Click on the checkbox, the events don't fire.
+Actual Results: Events should always fire
+Expected Results: They Don't
+How often does this happen?  always
+Additional Information:
+The code to fire these events is in the OnKeyDown function. THis is the 
+wrong place for it. It needs to be called whenever a checkbox changes 
+state, whether that state change is due to keyboard input, mouse input, 
+or program input. The callbacks should fire even if the check change is 
+due to the application changing the check state.

More information about the mono-bugs mailing list