TGMainFrame::CloseWindow(). Override this method and do in it what you
like. See also $ROOTSYS/test/guitest.cxx.
Cheers, Fons.
On Tue, 2004-08-31 at 18:05, Vassili Maroussov wrote:
> Dear all,
>
> what method of TGMainFrame is being executing when one clicks on the
> Close Window ("x") button or press Alt+F4? What I want is to avoid
> accidental program exit, to insert an exit confirmation dialog.
>
> Thank you,
>
> Vassili.
>
> P.S. I tried to override the CloseWindow and SendCloseMessage, but it
> didn't help.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET