Re: Win32lib focus problem-oh!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi George,

>Why does invoking the message box from winDos cause the entire
>application to be shoved into the background when winDos is
>closed? And how can I prevent this from happening? I consider
>this a very serious (i.e. totally unacceptable) user interface
>flaw with my program.

I suspect its because that message_box() is *not* a part of the win32lib
library, thus it sets the "owner" window to NULL. When Windows closes, it
has no knowledge of which window it was invoked from, so Windows just sets
focus to some window. What method it uses I don't know, but I guess its not
"last used". As a work around, you might need to specifically set the focus
to the window of your choice via setFocus(id), when message_box() returns.

I'm thinking of bring something like message_box into the library, in which
case you can have much more control over its behaviour.
-----
cheers
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu