Re: Win32Lib: minimize modal window/re-open/system hang

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

Irv wrote:

> I tried duplicating your program using Delphi, to see if this
> might have something to do with the way Windows works.
> Interestingly enough, MODAL windows in Delphi do not even
> add an icon or button on the taskbar, so there's no way to
> test further. Perhaps that may give a clue, however, in what
> may be the cause of this problem.

Win32Lib doesn't use real modal windows, but instead simulates them. This
allows me to use the same controls on modal windows that are used on normal
windows. The bug is probably a Win32Lib logic bug, not a Windows bug

Modality is simulated by not allowing other windows in the Win32Lib
application to get focus. If they try to get focus, the focus is redirected
to the 'modal' window.

When the 'modal' window is closed (hidden, actually), the modal flag is
*supposed* to be clear. What is sounds like is happening is that the modal
window is being closed, but the internal flag isn't clearing. As a result,
Win32Lib won't let you focus on any of the windows - it keeps redirecting
the focus to the closed (hidden) 'modal' window.

Since the 'modal' window is hidden, it looks like the application has locked
up.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu