X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FManaged.Windows.Forms%2FSystem.Windows.Forms%2FButtonBase.cs;h=7c9e20fd7a1afe3fa6baca6e611ca437de5eb87a;hb=0cafc17bbf010e7dae3ba357c6adac9280a2c63c;hp=1eb64750fa8927ec33d2dc10dda54fd2f5799378;hpb=e67bdc2854770b050f6cfb247a2be6b6954a7335;p=mono.git diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs index 1eb64750fa8..7c9e20fd7a1 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs @@ -23,6 +23,12 @@ // 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 +// // Revision 1.10 2004/10/05 04:56:11 jackson // Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves. // @@ -158,6 +164,9 @@ namespace System.Windows.Forms { ForeColorChanged+=new EventHandler(RedrawEvent); BackColorChanged+=new System.EventHandler(RedrawEvent); FontChanged+=new EventHandler(RedrawEvent); + SizeChanged+=new EventHandler(RedrawEvent); + + SetStyle (ControlStyles.ResizeRedraw, true); } #endregion // Public Constructors @@ -454,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