// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows license
+// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
MyApp::~MyApp()
{
+#if defined(__WXMSW__)
delete dialog1;
delete menu1;
+#endif
}
BEGIN_EVENT_TABLE(MyPanel, wxPanel)
- EVT_LEFT_DOWN( MyPanel::OnClick)
+ EVT_LEFT_DOWN( MyPanel::OnClick)
END_EVENT_TABLE()
MyPanel::MyPanel( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
- EVT_MENU(RESOURCE_ABOUT, MyFrame::OnAbout)
- EVT_MENU(RESOURCE_QUIT, MyFrame::OnQuit)
- EVT_MENU(RESOURCE_TESTDIALOG, MyFrame::OnTestDialog)
+ EVT_MENU(RESOURCE_ABOUT, MyFrame::OnAbout)
+ EVT_MENU(RESOURCE_QUIT, MyFrame::OnQuit)
+ EVT_MENU(RESOURCE_TESTDIALOG, MyFrame::OnTestDialog)
END_EVENT_TABLE()
// Define my frame constructor
void MyFrame::OnQuit( wxCommandEvent& WXUNUSED(event) )
{
- Close(TRUE);
+ Close(TRUE);
}
void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event) )
dialog->Close(TRUE);
}
-bool MyFrame::OnClose(void)
-{
- Show(FALSE);
-
- return TRUE;
-}
-
BEGIN_EVENT_TABLE(MyDialog, wxDialog)
- // EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
- EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)
+ //EVT_BUTTON(RESOURCE_OK, MyDialog::OnOk)
+ EVT_BUTTON(ID_BUTTON109, MyDialog::OnCancel)
END_EVENT_TABLE()