Shumkar has asked for the wisdom of the Perl Monks concerning the following question:
I'm wondering, is it possible to catch exiting Perl/Tk program when the user pushes "Exit" button on the top-right corner?
I have provided the Menu feature "File->Exit" which performs all necessary saving procedures but nothing prevents the user from (casual) pushing "Exit" button on the top-right corner, and in this case results of the user's work may be incorrect/lost.
If not possible - may be, is there any way to toggle "Exit" button from the top-right corner of the Perl/Tk MainWindow?
All questions - about WinXP.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to catch pushing the window "Exit" button in Perl/Tk?
by zentara (Cardinal) on Aug 18, 2010 at 12:41 UTC | |
|
Re: How to catch pushing the window "Exit" button in Perl/Tk?
by thundergnat (Deacon) on Aug 18, 2010 at 12:56 UTC | |
by Shumkar (Novice) on Aug 18, 2010 at 18:08 UTC |