MDI Child to Mdi Parent controls z-order
-
Hi, There is a form thas is mdi container. That form also contains one button. When a MdiChild is displayd, I can see gray MdiClient area, button and Mdi Child form too. But the button is above the Mdi Child form when they intersect. I'd like to switch the order and when the Mdi Child form comes above the button, the button will be behind the child form instead of in front of like default. any ideas? thanx
zilo
-
Hi, There is a form thas is mdi container. That form also contains one button. When a MdiChild is displayd, I can see gray MdiClient area, button and Mdi Child form too. But the button is above the Mdi Child form when they intersect. I'd like to switch the order and when the Mdi Child form comes above the button, the button will be behind the child form instead of in front of like default. any ideas? thanx
zilo
You'll have to do it manually. If one of the MDI children is "above" the button, hide the button. You could also try adding the button to the MdiClient window and not to your MDI container (your main form). It's a little tricky, but you can get a reference to the MdiClient window (the grey area that hold the MDI children). These two articles talk about MdiClient and how to get a reference to it: http://www.codeproject.com/KB/dialog/mdiclientcontroller.aspx[^] http://www.codeproject.com/KB/cs/mdiclientrevisited.aspx[^]
Luis Alonso Ramos Intelectix Chihuahua, Mexico