[fxruby-users] [Foxgui-users] Stopping a FOX popup window

Lyle Johnson lyle at lylejohnson.name
Wed Dec 5 10:31:07 EST 2007

On 12/4/07, Thomas, Jason M (Software) <jmthomas at ball.com> wrote:

> I'm using the FXRuby bindings to FOX and trying to use the unit test
> framework to do some testing. I've been able to create and tear down my FOX
> applications successfully but I'm having trouble programmatically closing a
> dialog box. I've tried (FXApp) stop and stopModal but they don't seem to
> have any effect. Closing and destroying the window works but the code is
> still stuck in the application loop.

Your code doesn't create a dialog box, it creates a second main
window. Is that what you meant to do?

At any rate, you should be able to break out of the runPopup() loop by
calling hide() on the window:

  def test_exception_popup()
    Thread.new do
      app = FXApp.instance

Hope this helps,


More information about the fxruby-users mailing list