Author: everaldo
Date: 2008-01-23 17:55:46 -0500 (Wed, 23 Jan 2008)
New Revision: 93732
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2008-01-23 Everaldo Canuto <[EMAIL PROTECTED]>
* Control.cs: Internal FindRootParent method added to return high
control
in parent tree.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-23 22:53:00 UTC (rev 93731)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-23 22:55:46 UTC (rev 93732)
@@ -1,3 +1,8 @@
+2008-01-23 Everaldo Canuto <[EMAIL PROTECTED]>
+
+ * Control.cs: Internal FindRootParent method added to return high
control
+ in parent tree.
+
2008-01-23 Geoff Norton <[EMAIL PROTECTED]>
* XplatUICarbon.cs: Ensure that we always have a host window. Prevents
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2008-01-23 22:53:00 UTC (rev 93731)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2008-01-23 22:55:46 UTC (rev 93732)
@@ -3750,6 +3750,16 @@
return result.EndInvoke ();
}
+ internal Control FindRootParent ()
+ {
+ Control c = this;
+
+ while (c.Parent != null)
+ c = c.Parent;
+
+ return c;
+ }
+
public Form FindForm() {
Control c;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches