Re: SDI interface and modal forms
Stacey Levine <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <A48E95FB3D4D02449554AE952F3B3E470445F534@vmcexchng.www.musicforasong.net> |
I think you are going to have to set some type of variables to hold the current window that has focus in each MID environment and then when they switch, the MDI form sets the focus on that particular windows that should have focus. You could minimize the other windows in that MDI set and not allow them to be restored until your dialog windows is gone. but I agree with everyone else that it seems like a strange design. -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Eyvind Axelsen Sent: Monday, June 04, 2007 4:51 AM To: [email protected] Subject: Re: [DOTNET-WINFORMS] SDI interface and modal forms Lloyd, I am afraid I may have confused some of you a bit with my initial example, that I tried to simplify for the sake of this discussion. The situation is a follows: The application employs a mix of an SDI and an MDI interface. It is SDI in the sense that it consists of several "independent" windows that have their own item on the windows task bar etc. Each of these SDI-windows is an MDI container, that may contain other MDI child forms. The application may have 1 to N open SDI forms that are MDI containers/parents. The problem arises when the user opens a modal dialog in one of the open forms, because this causes the other SDI windows/MDI containers to be blocked as well, even though the user may press ALT+TAB to bring them to front. Did that make any sense at all? Thanks, Eyvind. -----Opprinnelig melding----- Fra: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] På vegne av Lloyd J. Franklin Sendt: 4. juni 2007 09:59 Til: [email protected] Emne: Re: [DOTNET-WINFORMS] SDI interface and modal forms Hi Eyvind Your opening question said you were doing this with Single Document Forms which I assumed were standalone .exe's, that you cycle through via the system Alt+Tab command. E.g. SDI. With an MDI model it is the one application container with multiple child forms that you cycle through with Ctrl+Tab. I don't think an MDI container would let the user leave a form with a modal dialog open. Regards Lloyd