2009-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 12 Jan 2009 09:53:34 +0000 (09:53 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 12 Jan 2009 09:53:34 +0000 (09:53 -0000)
* TreeView.cs: When the selection gets canceled using the BeforeSelect
event, invalidate the previous highlighted_node bounds, to show the
user that the item was *not* selected.
Fixes #464191.

svn path=/trunk/mcs/; revision=123024

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs

index 95ee70e9ebbf3a3fd8d09ded5c353e554d78a6b6..8fc9c73f63c7e8e5d25492dcf7327d5df77ac29a 100644 (file)
@@ -1,3 +1,10 @@
+2009-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * TreeView.cs: When the selection gets canceled using the BeforeSelect
+       event, invalidate the previous highlighted_node bounds, to show the
+       user that the item was *not* selected.
+       Fixes #464191.
+
 2009-01-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
index 8ed58bb4919a4c9b10596685e413e50a7e784af1..6f5b259075e52519370f4e3b18f98aa71ff8dfa3 100644 (file)
@@ -2181,6 +2181,8 @@ namespace System.Windows.Forms {
 
                                Invalidate (invalid);
                        } else {
+                               Invalidate (highlighted_node.Bounds);
+
                                highlighted_node = focused_node;
                                selected_node = focused_node;
                        }