Allow changing focus to main window when Alt+Enter is open

Posted by Philip Mak on Tue 05 Mar 2002 09:23 AM — 5 posts, 19,608 views.

USA #0
If the Configuration screen (Alt+Enter) is open, then if I try to click on the main MUSHclient window it just beeps at me and doesn't let me type in it.

It would be nice if I could use the main MUSHclient window while Configuration is open, in case I'm doing some complicated configuration task that takes a while, but something happens in the MUSH that I want to respond to.
USA #1
I imagine this would require changing window behavior quite a bit. Maybe if the link I gave Gammon about keeping windows always on-top actually works it would be possible, but the reason he didn't do it probably has to do with the fact that there is really no direct support of switching between open windows 'within' a program. If dialogs and configuration options allowed you to switch back to the main client window you would in most programs lose track of the other window. Having had this happen I have to say it is a major pain. lol

in any case it would require some serious changes to the code for those dialogs, though I do agree with you that is would be very nice to be able to do so. ;)
Australia Forum Administrator #2
Yes, this is the difference between modal and modeless dialog boxes, and I have to say modeless ones can be a pain. For example, what if you have the configuration open, click on the main window and type something, forget you have the configuration open, and open another one?

One approach, if you want to do some major work (like adding lots of triggers) while being in a conversation with someone, is to run two copies of MUSHclient. In one copy you just chat away, and in the other one you open the configuration window and make all your changes. Then save them, and close and reopen the world in the other copy to get the changes to take effect.

USA #3
Well, one thing I noticed was that when I'm inside the configuration window, if people on the MUSH page me I can still see the messages in the main window so it's obviously still running...

> For example, what if you have the configuration open, click
> on the main window and type something, forget you have the
> configuration open, and open another one?

In that case, I would expect it to switch back to the configuration window that I currently have open.
Australia Forum Administrator #4
Quote:

Well, one thing I noticed was that when I'm inside the configuration window, if people on the MUSH page me I can still see the messages in the main window so it's obviously still running...


Yes, it's cute isn't it? The MFC libraries that MUSHclient is written in internally create a separate thread for modal dialogs, so the "underneath" window continues to work.

Quote:

In that case, I would expect it to switch back to the configuration window that I currently have open.


Yes, that would work.