Author: jpobst
Date: 2007-08-23 16:20:43 -0400 (Thu, 23 Aug 2007)
New Revision: 84750

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FontDialog.cs
Log:
2007-08-23  Jonathan Pobst  <[EMAIL PROTECTED]>

        * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
        they close when ESC is pressed.  Thanks Andy!

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-08-23 20:13:04 UTC (rev 84749)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-08-23 20:20:43 UTC (rev 84750)
@@ -1,5 +1,10 @@
 2007-08-23  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
+       they close when ESC is pressed.  Thanks Andy!
+
+2007-08-23  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * CommonDialog.cs: Do not instantiate form, leave that for derived 
classes.
        This way we can tell if this is a CommonDialog provided with mono, or 
one
        that is being implemented outside by a developer.  If it is an external 
one,

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs   
2007-08-23 20:13:04 UTC (rev 84749)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColorDialog.cs   
2007-08-23 20:20:43 UTC (rev 84750)
@@ -99,6 +99,7 @@
                        
                        okButton = new Button ();
                        cancelButton = new Button ();
+                       form.CancelButton = cancelButton;
                        helpButton = new Button ();
                        defineColoursButton = new Button ();
                        addColoursButton = new Button ();

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FontDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FontDialog.cs    
2007-08-23 20:13:04 UTC (rev 84749)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FontDialog.cs    
2007-08-23 20:20:43 UTC (rev 84750)
@@ -323,6 +323,7 @@
                        examplePanel.BorderStyle = BorderStyle.Fixed3D;
                        
                        form.AcceptButton = okButton;
+                       form.CancelButton = cancelButton;
                        
                        form.Controls.Add( scriptComboBox );
                        form.Controls.Add( scriptLabel );

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

Reply via email to