From: Joel VanderWerf Date: 2004-02-16T06:17:29+09:00 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.