Author: everaldo
Date: 2007-02-28 08:55:28 -0500 (Wed, 28 Feb 2007)
New Revision: 73545

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
Log:
        * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
        get rectangle as a result value.

2007-02-28  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-02-28 13:26:15 UTC (rev 73544)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-02-28 13:55:28 UTC (rev 73545)
@@ -1,5 +1,10 @@
 2007-02-28  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
+       get rectangle as a result value.
+
+2007-02-28  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * LinkLabel.cs: Theres some diferences between rectangle return from 
        MeasureCharacterRanges and the area used for DrawString to fix this 
        CalcMeasurementFactor method was created, it calcules the diferences

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-02-28 13:26:15 UTC (rev 73544)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2007-02-28 13:55:28 UTC (rev 73545)
@@ -552,7 +552,7 @@
                        return rv;
                }
 
-               private void CalcMeasurementFactor ()
+               internal Rectangle CalcTrimRectangle ()
                {
                        const string text = "X";
                        
@@ -568,7 +568,7 @@
                        // Calculate diference.
                        RectangleF rectf = regions [0].GetBounds 
(DeviceContext);
                        
-                       factor = new Rectangle ((int) rectf.X, (int) rectf.Y, 
+                       return new Rectangle ((int) rectf.X, (int) rectf.Y, 
                                                        rect.Width - (int) 
rectf.Width - ((int) rectf.X * 2), 
                                                        rect.Height - (int) 
rectf.Height - ((int) rectf.Y * 2));
                }
@@ -637,7 +637,7 @@
                        for (int i = 0; i < pieces.Length; i ++)
                                pieces[i].region = regions[i];
 
-                       CalcMeasurementFactor ();
+                       factor = CalcTrimRectangle ();
                        Invalidate ();
                }
 

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

Reply via email to