Hi,
I am using TGMdiFrame class and in my Gui program I would like to know whether a TGMdiFrame “window” is closed or not, and if it is then I would like to reuse it with all of its child objects…
The problem is that in my Gui program I want to let the users to close a window (in the window I have e.g. an embedded canvas, in which I plot a TCanvas, on which I draw a histogram). If the user closes one of such a TGMdiFrame “window” (by pressing e.g. the little “x” in top right hand corner of the window) then I would like to handle this case in such a way that the parent TGMdiFrame and all of its child objects should be reused again and they “stay together”, so that if one wanted to show the window again (the original TGMdiFrame with all of its child objects) then one could also redraw (or MapSubwindows(), etc) the whole thing again.
Another aspect of this is that how can one check with a boolean returning function whether a TGMdiFrame is closed or not (i.e. whether the “x” was pressed by the user or not)?
Is this trivial? If yes, please, can someone show a minimal example?
Thanx,
Balint