Author: toshok
Date: 2007-01-11 18:24:31 -0500 (Thu, 11 Jan 2007)
New Revision: 70891
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: make sure to call base.Select in our Select method
if it turns out we're going to be selected (i.e. if we have a link
that is going to receive focus). That way our container's
ActiveControl is updated properly.
2007-01-11 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
2007-01-11 23:15:12 UTC (rev 70890)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-01-11 23:24:31 UTC (rev 70891)
@@ -1,5 +1,12 @@
2007-01-11 Chris Toshok <[EMAIL PROTECTED]>
+ * LinkLabel.cs: make sure to call base.Select in our Select method
+ if it turns out we're going to be selected (i.e. if we have a link
+ that is going to receive focus). That way our container's
+ ActiveControl is updated properly.
+
+2007-01-11 Chris Toshok <[EMAIL PROTECTED]>
+
* LinkLabel.cs: turns out that LinkLabels are only Selectable if
they have 1 or more links. this fixes the crash gert reported.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
2007-01-11 23:15:12 UTC (rev 70890)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkLabel.cs
2007-01-11 23:24:31 UTC (rev 70891)
@@ -467,6 +467,7 @@
if (sorted_links[n].Enabled) {
sorted_links[n].Focused
= true;
focused_index = n;
+ base.Select (directed,
forward);
return;
}
}
@@ -479,6 +480,7 @@
if (sorted_links[n].Enabled) {
sorted_links[n].Focused
= true;
focused_index = n;
+ base.Select (directed,
forward);
return;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches