Thank You! It is exactly what I wished for.  =o))

This is a great Group, just as great as Ruby!

Best Regards,
Steve

----- Original Message ----- 
From: "Joel VanderWerf" <vjoel / PATH.Berkeley.EDU>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Sunday, February 15, 2004 10:17 PM
Subject: Re: Closing FXDialogBox without user input?


> Steve Kozma wrote:
> > Hi!
> > 
> > I would like to display a DialogBox as long as an external command is
> > running
> > and then remove it without any user interaction.
> > I thought something like this might work, but it doesn't:
> > 
> >  @infoWin.handle(nil, MKUINT(FXDialogBox::ID_CANCEL, SEL_UPDATE), nil)
> 
> It might be simpler than that. In examples/dialog.rb, change one method 
> as follows:
> 
>    # Show the non-modal dialog
>    def onCmdShowDialog(sender, sel, ptr)
>      @dialog.show
>      Thread.new {
>        sleep 2
>        @dialog.hide
>      }
>    end
> 
> The dialog stays open for 2 sec, allowing user interaction, and then 
> goes away.
>