[Mono-bugs] [Bug 79169][Nor] New - TreeView: right-clicking a node should not change SelectedNode

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 25 15:20:13 EDT 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 gert.driesen at pandora.be.

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

--- shadow/79169	2006-08-25 15:20:13.000000000 -0400
+++ shadow/79169.tmp.25720	2006-08-25 15:20:13.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 79169
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TreeView: right-clicking a node should not change SelectedNode
+
+Right-clicking a node in a TreeView should not change the SelectedNode 
+property.
+
+In MS.NET, the node on which you right-clicked will in fact be 
+highlighted but not actually selected. This is confusing perhaps, but it 
+does allow one to perform an action on the right-clicked node without 
+having the selection changed to that node.
+
+To reproduce:
+
+1. Compile and run the attached source code.
+2. Select the "Child 1" node.
+=> notice that value of "Selected node" changed accordingly
+3. Right-click the "Child 2" node.
+=> a message box stating "Right-clicked 'Child 2'" should appear
+=> on MS.NET "Child 2" is temporary highlighted
+4. Close the message box by clicking the "OK" button
+
+Expected result:
+
+Node "Child 1" should remain the selected node as indicated by 
+the "Selected node" value.
+
+Also, "Child 1" should be highlighted again.
+
+Actual result:
+
+The SelectedNode was changed to "Child 2", and none of the nodes are 
+highlighted.


More information about the mono-bugs mailing list