Author: atsushi
Date: 2006-05-15 15:22:23 -0400 (Mon, 15 May 2006)
New Revision: 60719

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
Log:
2006-05-15  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * MonthCalendar.cs : DateTimePicker should reflect selected date
          on mouse*up*, not mouse*down*. Fixed originally reported part of
          bug #76474.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-05-15 19:18:40 UTC (rev 60718)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-05-15 19:22:23 UTC (rev 60719)
@@ -1,8 +1,14 @@
 2006-05-15  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
-       * When argument index is equal or more than tab count, just ignore.
-         Fixed bug #78395.
+       * MonthCalendar.cs : DateTimePicker should reflect selected date
+         on mouse*up*, not mouse*down*. Fixed originally reported part of
+         bug #76474.
 
+2006-05-15  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * TabControl.cs : When argument index is equal or more than tab
+         count, just ignore. Fixed bug #78395.
+
 2006-05-15  Peter Dennis Bartok  <[EMAIL PROTECTED]>
 
        * Control.cs: Dispose all child controls when control is diposed 
(#78394)

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs 
2006-05-15 19:18:40 UTC (rev 60718)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MonthCalendar.cs 
2006-05-15 19:22:23 UTC (rev 60719)
@@ -1557,12 +1557,21 @@
                // selects the clicked date
                private void DoDateMouseDown (HitTestInfo hti) {
                        SetItemClick(hti);
-                       this.SelectDate (clicked_date);
-                       this.OnDateSelected (new DateRangeEventArgs 
(SelectionStart, SelectionEnd));
                }
                
                // event run on the mouse up event
                private void DoMouseUp () {
+
+                       HitTestInfo hti = this.HitTest (this.PointToClient 
(MousePosition));
+                       switch (hti.HitArea) {
+                       case HitArea.PrevMonthDate:
+                       case HitArea.NextMonthDate:
+                       case HitArea.Date:
+                               this.SelectDate (clicked_date);
+                               this.OnDateSelected (new DateRangeEventArgs 
(SelectionStart, SelectionEnd));
+                               break;
+                       }
+
                        // invalidate the next monthbutton
                        if (this.is_next_clicked) {
                                this.Invalidate(

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to