* DataGridBoolColumn.cs: Marked CheckState private to fix public API.
authorGert Driesen <drieseng@users.sourceforge.net>
Mon, 26 Sep 2005 15:23:32 +0000 (15:23 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Mon, 26 Sep 2005 15:23:32 +0000 (15:23 -0000)
* Splitter.cs: Added missing attributes for BorderStyle property.
* TextBoxBase.cs: Marked Calculate* methods internal.
* TextBox.cs: Fixed DefaultValue for PasswordChar property to match MS.NET.

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

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DataGridBoolColumn.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Splitter.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

index 495dd6ae274aed37168d99ddfb463600b4216596..c69549ad46fdc903d58ecfd785331dd50bdf0c3b 100644 (file)
@@ -1,3 +1,11 @@
+2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
+       * Splitter.cs: Added missing attributes for BorderStyle property.
+       * TextBoxBase.cs: Marked Calculate* methods internal.
+       * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
+       MS.NET.
+
 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
         
        * ListBox.cs: Fixes navigation to the last item in multicolumn lists
index 4644dda3f0efc14537c9a67a5cb091a267224e19..bf3878f7628bda3793e38a66a2c6f40e1406b057 100644 (file)
@@ -37,7 +37,7 @@ namespace System.Windows.Forms
        public class DataGridBoolColumn : DataGridColumnStyle
        {
                [Flags]
-               public enum CheckState {
+               private enum CheckState {
                        Checked         = 0x00000000,
                        UnChecked       = 0x00000002,
                        Null            = 0x00000004,
index 9ec93e1cf2416e756e04c2a95b335b13d493d4fa..62baec4f7e57b684e5e0d37e943f6762837bb1d6 100644 (file)
@@ -30,6 +30,7 @@ using System.ComponentModel;
 using System.ComponentModel.Design;
 using System.Drawing;
 using System.Drawing.Drawing2D;
+using System.Runtime.InteropServices;
 using System.Windows.Forms;
 
 
@@ -78,6 +79,8 @@ namespace System.Windows.Forms
 
                #region Public Instance Properties
 
+               [DispId (-504)]
+               [DefaultValue (BorderStyle.None)]
                public BorderStyle BorderStyle {
                        get { return drag_form.InternalBorderStyle; }
                        set { drag_form.InternalBorderStyle = value; }
index 08094960f7957a3a632c8b71dd7767439de7b02e..bbfa31f249d02148db0c718b661d39925dab9fd1 100644 (file)
@@ -86,7 +86,7 @@ namespace System.Windows.Forms {
                }
 
                [Localizable(true)]
-               [DefaultValue("")]
+               [DefaultValue('\0')]
                public char PasswordChar {
                        get {
                                return password_char;
index 439070befd480b7cdec7d9dc3e4276680c6e7212..d292a3359fbcde2579fcec71527af8287a61774f 100644 (file)
@@ -1171,7 +1171,7 @@ static int current;
                        
                }
 
-               protected void CalculateDocument() {
+               internal void CalculateDocument() {
                        if (!IsHandleCreated) {
                                return;
                        }
@@ -1181,7 +1181,7 @@ static int current;
                        Invalidate();   // FIXME - do we need this?
                }
 
-               protected void CalculateScrollBars() {
+               internal void CalculateScrollBars() {
                        // FIXME - need separate calculations for center and right alignment
                        // No scrollbars for a single line
                        if (document.Width >= this.Width) {