(no subject)

From: Paolo MAESTRO (paolo.maestro@pi.infn.it)
Date: Fri Jun 25 2004 - 19:13:53 MEST


Hello Rooters,
I have a GUI consisting of a class MainFrm (inheriting from TGMainFrame)
with  some widgets and a pointer   TransientFrm* _a   as a private member.
A istance of _a is created by a method associated to one of the widgets 

void CreateTransientFrame()
{
_a = new TransientFrm(this,w,h);
} 

where
TransientFrm::TransientFrm(const TGWindow* m, int w, int h )
{
t1 = new TGTransientFrame(gClient->GetRoot(), m, w, h)
....
...} 

The transient frame can be closed by the user pressing a widget associated
to the method 

DoClose()
{  t1-> SendCloseMessage()} 

All this is the standard way to do  as I found in the macro guitest.C.
My question is :
How is it possible to make the main frame know the transient frame has been 
closed by the user?
In fact I would like to create, every time the method CreateTransientFrame 
is entered, the transient frame only if it has been already closed, 
otherwise to use the previously opened window.
Thanks for your help. 

Paolo 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET