? destroying a dialog ? 
Author Message
 ? destroying a dialog ?

I can answer my own question. There is a module in Contrib called
WaitBox.pm. I shoulda looked harder before I posted.

--

+  967-1/E21     (802) 769-4764   (tie 446)   +



Sat, 26 Dec 1998 03:00:00 GMT  
 ? destroying a dialog ?

I was wonder if anybody new how to destroy a dialog. Here is a
code sample...

  $aixtool_dialog = $MW->Dialog(
                -title          => 'Wait',
                -text           => "Downloading $file.\n Please wait....",
                -cursor         => 'watch',
                -bitmap         => 'hourglass',
                -default_button => 'Cancel',
                -buttons        => ['Cancel']
  );

  $aixtool_dialog->Show;

Now what I want to do is destroy this dialog when a certain event occurs,
like when a file is finished copying into a directory.

Basically, I need a wait box (with the cancel option).

Thanks in advance.

--

+  967-1/E21     (802) 769-4764   (tie 446)   +



Sat, 26 Dec 1998 03:00:00 GMT  
 ? destroying a dialog ?

Here is the code if anybody is interested..

  $aixtool_wait = $MW->WaitBox(
                -title          => 'Wait',
                -txt1           => "Downloading $file",
                -canceltext     => 'Cancel',
                -cancelroutine  => sub {
                                     $aixtool_wait->unShow;
                                   },
  );

  $aixtool_wait->Show;

--

+  967-1/E21     (802) 769-4764   (tie 446)   +



Sat, 26 Dec 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to destroy a dialog

2. Dialog and only dialog; Dialog as subroutine

3. DESTROY not destroying

4. Puzzle: DESTROY not destroying

5. destroy and DESTROY in Tk/Perl

6. Dialog without Tk::Dialog

7. Ibraheem Allahdad el-Hassan: Al Queda will destroy the infidels (next attack on Buy Nothing Day)

8. Alhadin Al Najjar: Al Queda will destroy the infidels (next attack on Buy Nothing Day)

9. DESTROY for nested classes and END blocks

10. Output replication inside of DESTROY

11. Timely DESTROY as a way to cleanup

12. Detecting global destruction phase in DESTROY

 

 
Powered by phpBB® Forum Software