* MonthCalendar.cs: Removed DoEvents call to prevent a running
authorJackson Harper <jackson@novell.com>
Fri, 6 Jan 2006 20:39:38 +0000 (20:39 -0000)
committerJackson Harper <jackson@novell.com>
Fri, 6 Jan 2006 20:39:38 +0000 (20:39 -0000)
        message loop. Change timer intervals to numbers that seem more
        natural.

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

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

index ed00f790f6570ea496673865249c1d8797b31264..04bf1fa3320bb60294f2eaff5c95850763012c7c 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-06  Jackson Harper  <jackson@ximian.com>
+
+       * MonthCalendar.cs: Removed DoEvents call to prevent a running
+       message loop. Change timer intervals to numbers that seem more
+       natural.
+
 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
 
        * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
index 35599fa8d9ed750e1e38f1e4559ef88c6cc03406..718a4d147943794b943bb70a12dd58bcb12c44eb 100644 (file)
@@ -1506,7 +1506,6 @@ namespace System.Windows.Forms {
                                if (click_state [1] || click_state [2]) {
                                        // invalidate the area where the mouse was last held
                                        DoMouseUp ();
-                                       Application.DoEvents ();
                                        // register the click
                                        if (hti.HitArea == HitArea.PrevMonthButton ||
                                                hti.HitArea == HitArea.NextMonthButton) {
@@ -1514,8 +1513,8 @@ namespace System.Windows.Forms {
                                                click_state [1] = (hti.HitArea == HitArea.PrevMonthButton);
                                                click_state [2] = !click_state [1];
                                        }
-                                       if (timer.Interval != 100) {
-                                               timer.Interval = 100;
+                                       if (timer.Interval != 300) {
+                                               timer.Interval = 300;
                                        }
                                }
                        } else  {
@@ -1653,7 +1652,7 @@ namespace System.Windows.Forms {
                                        DoButtonMouseDown (hti);
                                        click_state [1] = (hti.HitArea == HitArea.PrevMonthDate);
                                        click_state [2] = !click_state [1];                                     
-                                       timer.Interval = 500;
+                                       timer.Interval = 750;
                                        timer.Start ();
                                        break;
                                case HitArea.Date: