TGTextView window close signal connect

From: Nicolas Produit <Nicolas.Produit_at_unige.ch>
Date: Wed, 28 Jul 2010 17:59:44 +0200


Hi,

is it possible to Connect to a window close event of an object of type TGTextView?

I tried:

cond=new TGTextView(gClient->GetRoot());

cond->MapSubwindows();
cond->MapWindow();
cond->MoveResize(900,600,300,300);
cond->GetCanvas()->Connect("Destroyed()","MonitorFrame",this,"CloseWindow()");

this does not give error messages so it seems the Destroyed() signal from the TQObject can be connected but then when killing the window I get a:
Error in <RootX11IOErrorHandler>: fatal X11 error (connection to server lost?!)
rather to a call to my subroutine (the subroutine work for connected TCanvas on signal Closed())

Thanks

-- 
Nicolas Produit
ISDC, Data Centre for Astrophysics   Phone:+41 22 379 2140
16, Chemin d'Ecogia                  Fax:  +41 22 379 2133
CH-1290 Versoix                      www:  http://isdc.unige.ch/~produit
Received on Wed Jul 28 2010 - 17:59:54 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 28 2010 - 23:50:02 CEST