What is Name of the EVENT for FileExiting

If you use File->Exit, you have to use the EVT_MENU event and define an
ID for the Exit menu

Exemple:

        self.mnuFile.Append(ID_EXIT, "Exit", "Exit the application",
wxITEM_NORMAL)
.
.
.

        EVT_MENU(self, ID_EXIT, self.mnuFileExit)

When killing the application, I think you have to intercept the kill
signal or something like that.

Roland

···

Le lun 05/04/2004 à 11:34, bala a écrit :

Hi,
    My Application is running....While running if i close through..File-> Exit or Killing the Process through TaskManager....

I want to save the result before my Application get close.

Regards
Bala

--
Everaert Roland <roland_everaert@yahoo.fr>

Everaert Roland wrote:

If you use File->Exit, you have to use the EVT_MENU event and define an
ID for the Exit menu

Exemple:

        self.mnuFile.Append(ID_EXIT, "Exit", "Exit the application",
wxITEM_NORMAL)
.

        EVT_MENU(self, ID_EXIT, self.mnuFileExit)

When killing the application, I think you have to intercept the kill
signal or something like that.

On Windows the system will usually send an EVT_CLOSE first, and only if there is no response to that will it forcibly terminate the app.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!