I didn't do this or test this, just an idea: if you fork into another,
totally independent script that uses GUI, then the Dialog() call from there
should not trigger event subs in your first script. Then all you need is to
hang in one event sub of your first script until the second one comes back.

On the other hand, the functionality you describe is what modal windows are
supposed to do - freeze their parent. We had a number of trails about
implementing modality a few weeks ago, anybody who was in on this, back me
up, please.

Have fun,
Harald

> -----Original Message-----
> From: Peter Eisengrein [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 16, 2001 12:55
> To: Perl GUI Mail list (E-mail)
> Subject: [perl-win32-gui-users] wait for user input
> 
> 
> 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. However, the script picks up other 
> things going on
> and it closes my DialogBox as fast as it opens it.
> 
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 

Reply via email to