Author: jackson
Date: 2005-09-28 01:44:42 -0400 (Wed, 28 Sep 2005)
New Revision: 50923

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiClient.cs
Log:

        * MdiClient.cs: New mdi children need to be added to the back of
        the controls collection so the zorder is set correctly.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-09-28 05:43:50 UTC (rev 50922)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-09-28 05:44:42 UTC (rev 50923)
@@ -1,5 +1,10 @@
 2005-09-27  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * MdiClient.cs: New mdi children need to be added to the back of
+       the controls collection so the zorder is set correctly.
+
+2005-09-27  Jackson Harper  <[EMAIL PROTECTED]>
+
        * Form.cs (CreateParams): Setup MDI forms correctly.
 
 2005-09-27  Jackson Harper  <[EMAIL PROTECTED]>

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiClient.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiClient.cs     
2005-09-28 05:43:50 UTC (rev 50922)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiClient.cs     
2005-09-28 05:44:42 UTC (rev 50923)
@@ -35,6 +35,7 @@
        [ToolboxItem(false)]
        public sealed class MdiClient : Control {
                #region Local Variables
+                private int mdi_created;
                #endregion      // Local Variables
 
                #region Public Classes
@@ -51,6 +52,7 @@
                                        throw new ArgumentException("Form must 
be MdiChild");
                                }
                                base.Add (value);
+                                SetChildIndex (value, 0); // always insert at 
front
                        }
 
                        public override void Remove(Control value) {
@@ -121,5 +123,10 @@
 
                #region Protected Instance Methods
                #endregion      // Protected Instance Methods
+
+               internal int ChildrenCreated {
+                       get { return mdi_created; }
+                       set { mdi_created = value; }
+               }
        }
 }

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

Reply via email to