Win32Lib: having a modal problem

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

Hi all,

I've found a problem in a program I'm making/modifying using Win32Lib which
may be a result of me not knowing what I'm doing with "modal" windows.
Basically it hangs up if I minimize a modal window, & then re-open that
window instead of restoring it.

  The program has a main window with a set of buttons which select some
"modal" windows. (I did that so each selected window would appear & stay
"over" the main.)  When I close each modal window, & then open another,
there's no problem.  But when I started MINIMIZING one and opening &
minimizing another & another, (to test every action I could think of that a
user could do), the program eventually hung up.

This works ok:
open modal window by clicking on button in main,
click on "active app" icon at bottom of screen to minimize it (or click on
minimize button on modal window),
click again on "minimized" icon ON BOTTOM (to restore modal),
 close modal window,
do other stuff.

This is NOT ok:
open modal window, (same as above)
 click on "active" icon at bottom to minimize, (same as above)
click on BUTTON IN MAIN to open modal window AGAIN (which succeeds),
close modal(which succeeds),
 then click anywhere in main: HANGS.

I could (& in some instances did) remove the "minimize" button from the
modal window(s), but this doesn't stop a user from minimizing the window by
clicking on the "active" icon at bottom & causing the same hang-up.

Have I made some kind of obvious mistake, or what?

Dan Moyer

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

Search



Quick Links

User menu

Not signed in.

Misc Menu