Author: jpobst
Date: 2007-03-27 12:29:13 -0500 (Tue, 27 Mar 2007)
New Revision: 75034

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2007-03-27  Jonathan Pobst  <[EMAIL PROTECTED]>

        * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
        Fixes tab control issues where controls would not show up because they
        never received their OnVisibleChanged call.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-27 17:18:59 UTC (rev 75033)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-27 17:29:13 UTC (rev 75034)
@@ -1,3 +1,9 @@
+2007-03-27  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
+       Fixes tab control issues where controls would not show up because they
+       never received their OnVisibleChanged call.
+
 2007-03-27  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * NotifyIcon.cs: Balloon events added (BalloonTipClicked, 
BalloonTipClosed,

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-03-27 17:18:59 UTC (rev 75033)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-03-27 17:29:13 UTC (rev 75034)
@@ -4308,6 +4308,9 @@
                                                        // apparently moving 
unmapped toplevel windows doesn't work
                                                        
XplatUI.SetWindowPos(window.Handle, bounds.X, bounds.Y, bounds.Width, 
bounds.Height);   
                                        }
+                                       
+                                       if (!(this is Form))
+                                               OnVisibleChanged 
(EventArgs.Empty);
                                }
                                else {
                                        OnVisibleChanged(EventArgs.Empty);

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

Reply via email to