I'm trying to implement a window that removes itself from a list when it is destroyed (eg. closed with the close button in the top right corner of the window :) )

in this window I have code just like in the "example_multiple_windows"

class example_flim_tableau : public vgui_tableau {
  bool handle(vgui_event const& e) {
    if (e.type == vgui_DESTROY) {
      vgui_dialog dialog("Farewell!");
      dialog.message("I am about to die!\nLast chance to save data would go here...");
      dialog.set_modal(true);
      dialog.ask();
      return true;
    }
    else
      return false;
  }
  vcl_string type_name() const { return "example_flim_tableau"; }

...

vgui_shell_tableau_new shell_tab(sub[i].tab, flim_tab);
sub_window->get_adaptor()->set_tableau(shell_tab);
sub_window->show();

but when I close the window it doesn't do anything, it even doesn't come inside the handle method.
is there another way to catch this kind of event? or isn't this possible?

TIA

--
Grtz
Rowin Heymans