Author: jpobst
Date: 2008-02-05 23:31:10 -0500 (Tue, 05 Feb 2008)
New Revision: 94991
Modified:
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2008-02-05 Jonathan Pobst <[EMAIL PROTECTED]>
[Backport to 1.9]
* Form.cs: If we change the active MDI child form, let the others
know they need to repaint their title bar so it will appear inactive.
[Fixes part 1 of bug #325473]
Modified:
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
---
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-06 03:51:00 UTC (rev 94990)
+++
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-06 04:31:10 UTC (rev 94991)
@@ -1,3 +1,9 @@
+2008-02-05 Jonathan Pobst <[EMAIL PROTECTED]>
+ [Backport to 1.9]
+ * Form.cs: If we change the active MDI child form, let the others
+ know they need to repaint their title bar so it will appear inactive.
+ [Fixes part 1 of bug #325473]
+
2008-02-05 Andreia Gaita <[EMAIL PROTECTED]>
[Backport to 1.9]
* XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we
create
Modified:
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
---
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2008-02-06 03:51:00 UTC (rev 94990)
+++
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
2008-02-06 04:31:10 UTC (rev 94991)
@@ -1976,6 +1976,12 @@
wm = window_manager as MdiWindowManager;
wm.RaiseActivated ();
+
+ // We need to tell everyone who may
have just been deactivated to redraw their titlebar
+ if (MdiParent != null)
+ foreach (Form form in
MdiParent.MdiChildren)
+ if (form != this &&
form.IsHandleCreated)
+
XplatUI.InvalidateNC (form.Handle);
}
if (window_state != FormWindowState.Normal) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches