Bringing child window foreground and model-less dialog background
-
I have an MDI application. In these , i have a model-less dialog box with a button which when clicked opens up a child window in the background of the dialog box How can i make the child window to appear foreground and dialog box to appear background when the button is clicked
-
I have an MDI application. In these , i have a model-less dialog box with a button which when clicked opens up a child window in the background of the dialog box How can i make the child window to appear foreground and dialog box to appear background when the button is clicked
Hi, Could you be more specific, please? You said that it is an MDI application, though is your dialog-box created as standalone window, or as MDI-Child? If your second dialog-box is created as MDI child inside MDI frame, it can't be displayed in foreground. Regards
-
Hi, Could you be more specific, please? You said that it is an MDI application, though is your dialog-box created as standalone window, or as MDI-Child? If your second dialog-box is created as MDI child inside MDI frame, it can't be displayed in foreground. Regards
I have a dialog box on start-up of the application . when a button is clicked on the dailog box , it pops up an MDI child window which is displayed at the background.
-
I have a dialog box on start-up of the application . when a button is clicked on the dailog box , it pops up an MDI child window which is displayed at the background.
Hi,
Veeresh Hiremath wrote:
pops up an MDI child window
and this is why it is displayed in the background. As long as you create it as MDI child it is supposed to be displayed below your dialog box, though in the foreground of the parent MDI frame. This is exactly how MDI works. Also, "it pops up" is not really the case here, since MDI child windows aren't popped up, these are just MDI frame's child windows, and if you want window to be popped up, you have to obey MDI and create it as popup. Regards
-
Hi,
Veeresh Hiremath wrote:
pops up an MDI child window
and this is why it is displayed in the background. As long as you create it as MDI child it is supposed to be displayed below your dialog box, though in the foreground of the parent MDI frame. This is exactly how MDI works. Also, "it pops up" is not really the case here, since MDI child windows aren't popped up, these are just MDI frame's child windows, and if you want window to be popped up, you have to obey MDI and create it as popup. Regards
Thanks for the information.