Author: jackson
Date: 2007-05-15 18:17:37 -0400 (Tue, 15 May 2007)
New Revision: 77444

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
Log:

        * TextBox.cs: Disable some of the menu options when using a
        readonly textbox.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-15 22:12:11 UTC (rev 77443)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-15 22:17:37 UTC (rev 77444)
@@ -1,5 +1,10 @@
 2007-05-15  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * TextBox.cs: Disable some of the menu options when using a
+       readonly textbox.
+
+2007-05-15  Jackson Harper  <[EMAIL PROTECTED]>
+
        * TextBox.cs:
        * TextBoxBase.cs:
        * RichTextBox.cs: Some new 2.0 methods

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs       
2007-05-15 22:12:11 UTC (rev 77443)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs       
2007-05-15 22:17:37 UTC (rev 77444)
@@ -436,6 +436,10 @@
                        } else {
                                undo.Enabled = true;
                        }
+
+                       if (ReadOnly) {
+                               undo.Enabled = cut.Enabled = paste.Enabled = 
delete.Enabled = false;
+                       }
                }
 
                private void undo_Click(object sender, EventArgs e) {

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

Reply via email to