[Mono-bugs] [Bug 79166][Nor] New - ListView/TreeView: when HideSelection is false, selected item remains highlighted

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 25 14:05:15 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.


--- shadow/79166	2006-08-25 14:05:15.000000000 -0400
+++ shadow/79166.tmp.24133	2006-08-25 14:05:15.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 79166
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ListView/TreeView: when HideSelection is false, selected item remains highlighted
+When ListView.HideSelection is false, and focus is moved to another 
+control then the selected listview item remains highlighted with the 
+system highlight color (KnownColor.Highlight), while another highlight 
+color should should in fact be used.
+The MS docs state : "When this property is set to false, selected items 
+in the ListView control remain highlighted in a *DIFFERENT* color than 
+the current selection color specified by the operating system when the 
+ListView control loses focus.
+Note: the docs are not clear on what exact highlight color should be used 
+when HideSelection is false (and the focus is lost). 
+To reproduce:
+1. Check out eventvwr from SVN (see below)
+2. Run eventvwr using 'make test'
+3. In the treeview, select MWF.
+4. In the listview, select an event entry.
+=> notice that the MWF tree node retains it highlight color 
+5. In the treeview, select MWF again.
+=> notice that the listview item retains it highlist color
+Note: running 'make test' will first create some test eventlogs and event 
+sources (in /tmp/mono/eventlog), and write a few eventries to it.
+To checkout eventvwr from SVN:
+$ svn co svn+ssh://<user>@mono-cvs.ximian.com/source/trunk/winforms-tools
+$ cd winforms-tools/eventvwr
+$ make

More information about the mono-bugs mailing list