Peter wrote:
How can I temporarily halt the main Dialog() from accepting other events? I
have an event that opens a dialog box (an alert) that I bring focus to,
disable the other windows, etc. I want to wait for user input (click a
button) before moving on.

A modal dialog box in other words. Unfortunately there is no support for a "true" modal dialog box in Win32::GUI AFAIK, so your way is pretty much the way to go.


However, the script picks up other things going on

Even though the other windows are disabled? What kind of things?


and it closes my DialogBox as fast as it opens it.

Can you find out why that happens? Is there another event being triggered by something?


If you can't get it to work, try the Win32::GUI::Modalizer module at:

http://www.bahnhof.se/~johanl/perl/Win32GUI/

It does what you want, although in a sligthly different way. I've had reports of it not working 100% properly under Win95, so if anyone using that platform would care to try it out I would be grateful.


/J

------ ---- --- -- -- -- -  -   -    -        -
Johan Lindström                    Boss Casinos
Sourcerer                     [EMAIL PROTECTED]
                 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail


Reply via email to