[fxruby-users] test if a window has been destroyed

Lyle Johnson lyle.johnson at gmail.com
Thu Apr 19 09:30:39 EDT 2007

On 4/19/07, Joel VanderWerf <vjoel at path.berkeley.edu> wrote:

> Is there a way to test if a FXWindow has been destroyed?

If a window has been destroyed, or hasn't been created *yet*, then
created? method should answer false:

    window.create unless window.created?

Note, however, that create is supposed to be a no-op if the window is
already realized, so you should be able to shorten the above code to:


Hope this helps,


More information about the fxruby-users mailing list