- Now Redraws on MouseUp for FlatStyle Flat and Popup
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ButtonBase.cs
index 0780b9766ce1edaf678fe6cd150f0005097a661f..7c9e20fd7a1afe3fa6baca6e611ca437de5eb87a 100644 (file)
@@ -23,6 +23,9 @@
 //     Peter Bartok    pbartok@novell.com
 //
 // $Log: ButtonBase.cs,v $
+// Revision 1.12  2004/10/13 22:32:38  pbartok
+// - Now Redraws on MouseUp for FlatStyle Flat and Popup
+//
 // Revision 1.11  2004/10/13 20:12:47  pbartok
 // - Added the Redraw on Resize that got dropped in the last rev
 //
@@ -460,6 +463,8 @@ namespace System.Windows.Forms {
                                if (is_pressed) {
                                        is_pressed = false;
                                        Redraw();
+                               } else if ((this.flat_style == FlatStyle.Flat) || (this.flat_style == FlatStyle.Popup)) {
+                                       Redraw();
                                }
 
                                if (mevent.X>=0 && mevent.Y>=0 && mevent.X<this.client_size.Width && mevent.Y<=this.client_size.Height) {