Author: toshok
Date: 2006-07-07 12:33:16 -0400 (Fri, 07 Jul 2006)
New Revision: 62348

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 (Select): if we chain up to the parent, set
        focused_index to -1 so we'll search for the first available link
        the next time the user tabs into us.  Also, if the direction is
        backward and focused_index == -1, start the search from the last
        element.

2006-07-07  Chris Toshok  <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-07 14:49:33 UTC (rev 62347)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-07-07 16:33:16 UTC (rev 62348)
@@ -1,5 +1,13 @@
 2006-07-07  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * LinkLabel.cs (Select): if we chain up to the parent, set
+       focused_index to -1 so we'll search for the first available link
+       the next time the user tabs into us.  Also, if the direction is
+       backward and focused_index == -1, start the search from the last
+       element.
+
+2006-07-07  Chris Toshok  <[EMAIL PROTECTED]>
+
        * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
        is beyond the end of the text, don't do anything.
        (CreateLinkPieces): set our ControlStyles.Selectable based on

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2006-07-07 14:49:33 UTC (rev 62347)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs     
2006-07-07 16:33:16 UTC (rev 62348)
@@ -444,6 +444,9 @@
                                        }
                                }
                                else {
+                                       if (focused_index == -1)
+                                               focused_index = 
sorted_links.Length;
+
                                        for (int n = focused_index - 1; n >= 0; 
n--) {
                                                if (sorted_links[n].Enabled) {
                                                        sorted_links[n].Focused 
= true;
@@ -453,6 +456,8 @@
                                        }
                                }
 
+                               focused_index = -1;
+
                                if (parent != null)
                                        parent.SelectNextControl (this, 
forward, false, true, true);
                        }

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

Reply via email to