Author: jpobst
Date: 2007-04-04 13:08:31 -0400 (Wed, 04 Apr 2007)
New Revision: 75399
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2007-04-04 Jonathan Pobst <[EMAIL PROTECTED]>
* Control.cs: When we CreateControl, we need to also create all of the
control's children. The child's OnLoad must also fire before the
parent's
OnLoad. Fixes the toolbox size in PDN.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 17:03:04 UTC (rev 75398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-04 17:08:31 UTC (rev 75399)
@@ -1,3 +1,9 @@
+2007-04-04 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * Control.cs: When we CreateControl, we need to also create all of the
+ control's children. The child's OnLoad must also fire before the
parent's
+ OnLoad. Fixes the toolbox size in PDN.
+
2007-04-04 Jackson Harper <[EMAIL PROTECTED]>
* TextBoxBase.cs: When the user presses enter, insert a line
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2007-04-04 17:03:04 UTC (rev 75398)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2007-04-04 17:08:31 UTC (rev 75399)
@@ -3353,6 +3353,14 @@
if (!is_created) {
is_created = true;
+ // Create all of our children when we are
created.
+ // The child should fire it's OnLoad before the
parents, however
+ // if the child checks Parent.Created in it's
OnCreateControl, the
+ // parent is already created.
+ foreach (Control c in Controls)
+ if (!c.Created)
+ c.CreateControl ();
+
if (binding_context == null) { // seem to be
sent whenever it's null?
OnBindingContextChanged(EventArgs.Empty);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches