2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Fri, 1 Dec 2006 18:05:04 +0000 (18:05 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Fri, 1 Dec 2006 18:05:04 +0000 (18:05 -0000)
commit62bbee37304540d195a995641b31a65c6ffcb2b1
treec7d16a0a29311f1b4ff3e821f2208d1a196dba7e
parent5d752793c974d8c1c3ed08983ead31a0b1a1ba97
2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiWindowManager.cs:
- Set form to active mdi child if shown,
and update the active mdi child to the next
remaining child in the z-order if the form is hidden.

* Form.cs:
- Track if the form has been visible and if its
visibility is beeing changed, so that the MdiClient
can properly decide the ActiveMdiChild. The MdiClient
cannot track this since the form can change visibility
before MdiClient is created.

* MdiClient.cs:
- Don't activate anything of the parent form is changing
its visibility.
- Rework ActiveMdiChild to only return visible mdi
children and take into account several other corner
cases.

svn path=/trunk/mcs/; revision=68836
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiClient.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiWindowManager.cs