Author: pbartok
Date: 2006-07-21 19:18:32 -0400 (Fri, 21 Jul 2006)
New Revision: 62885

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2006-07-21  Matt Hargett  <[EMAIL PROTECTED]>

        * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-21 22:36:04 UTC (rev 62884)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-21 23:18:32 UTC (rev 62885)
@@ -1,3 +1,7 @@
+2006-07-21  Matt Hargett  <[EMAIL PROTECTED]>
+
+       * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
+
 2006-07-21  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
 
        * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-07-21 22:36:04 UTC (rev 62884)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2006-07-21 23:18:32 UTC (rev 62885)
@@ -125,6 +125,8 @@
                internal bool                   use_compatible_text_rendering;
                static internal bool            verify_thread_handle;
                private Padding                 padding;
+               private Size                    maximum_size;
+               private Size                    minimum_size;
 #endif
 
                #endregion      // Local Variables
@@ -682,6 +684,8 @@
 #if NET_2_0
                        use_compatible_text_rendering = 
Application.use_compatible_text_rendering;
                        padding = new Padding(0);
+                       maximum_size = new Size();
+                       minimum_size = new Size();
 #endif
 
                        control_style = ControlStyles.UserPaint | 
ControlStyles.AllPaintingInWmPaint | 
@@ -1516,6 +1520,24 @@
                                auto_size = value;
                        }
                }
+
+               public virtual Size MaximumSize {
+                       get {
+                               return maximum_size;
+                       }
+                       set {
+                               maximum_size = value;
+                       }
+               }
+
+               public virtual Size MinimumSize {
+                       get {
+                               return minimum_size;
+                       }
+                       set {
+                               minimum_size = value;
+                       }
+               }
 #endif // NET_2_0
 
                [DispId(-501)]

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

Reply via email to