Re: Win32lib focus problem-oh!

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

----- Oorspronkelijk bericht -----
Van: Derek Parnell <DerekP at IXCHANGE.COM.AU>
Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Verzonden: dinsdag 5 december 2000 3:18
Onderwerp: Re: Win32lib focus problem-oh!


> 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

I think message_box should *always* have an owner; maybe the fact that the
Euphoria hasn't got one is the cause of consecutive message_boxes 'floating'
towards the down left corner in my applications!

Ad

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

Search



Quick Links

User menu

Not signed in.

Misc Menu