Make closing a TCanvas window close the application

Hi

As you noticed, the Canvas::CloseWindow() signal doesn’t exist. Use Canvas::Closed() instead.
Two examples:
If the canvas has already been created and you have its pointer:

canv->Connect("TCanvas", "Closed()", "TApplication", gApplication, "Terminate()");

Otherwise, more generic way:

TQObject::Connect("TCanvas", "Closed()", "TApplication", gApplication, "Terminate()");

Cheers,
Bertrand.