Author: jpobst
Date: 2008-02-07 10:55:20 -0500 (Thu, 07 Feb 2008)
New Revision: 95148

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2008-02-07  Jonathan Pobst  <[EMAIL PROTECTED]>

        * Form.cs: When becoming visible, if we are an MDI child, call
        SetWindowState with a dummy old_state so that changes will actually
        be made.
        [Fixes the 2nd part of bug #325473]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-07 15:53:38 UTC (rev 95147)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-07 15:55:20 UTC (rev 95148)
@@ -1,3 +1,10 @@
+2008-02-07  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * Form.cs: When becoming visible, if we are an MDI child, call
+       SetWindowState with a dummy old_state so that changes will actually
+       be made.
+       [Fixes the 2nd part of bug #325473]
+
 2008-02-07  Andreia Gaita <[EMAIL PROTECTED]>
 
        * Control.cs: Reset properties to their pre parent-change values in case

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-07 15:53:38 UTC (rev 95147)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2008-02-07 15:55:20 UTC (rev 95148)
@@ -2160,7 +2160,9 @@
                        
                        if (Visible) {
                                if (window_manager != null)
-                                       window_manager.SetWindowState 
(WindowState, WindowState);
+                                       // We don't really have an old_state, 
and if we pass the same thing,
+                                       // it may not really change the state 
for us
+                                       window_manager.SetWindowState 
((FormWindowState)(-1), WindowState);
                        }
                }
 

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

Reply via email to