+BEGIN_EVENT_TABLE(MyCanvas, wxScrolledWindow)
+ EVT_PAINT(MyCanvas::OnPaint)
+END_EVENT_TABLE()
+
+BEGIN_EVENT_TABLE(MyFrame, wxFrame)
+ EVT_MENU(DIALOGS_CHOOSE_COLOUR, MyFrame::ChooseColour)
+ EVT_MENU(DIALOGS_CHOOSE_FONT, MyFrame::ChooseFont)
+ EVT_MENU(DIALOGS_LOG_DIALOG, MyFrame::LogDialog)
+ EVT_MENU(DIALOGS_MESSAGE_BOX, MyFrame::MessageBox)
+ EVT_MENU(DIALOGS_TEXT_ENTRY, MyFrame::TextEntry)
+ EVT_MENU(DIALOGS_PASSWORD_ENTRY, MyFrame::PasswordEntry)
+ EVT_MENU(DIALOGS_NUM_ENTRY, MyFrame::NumericEntry)
+ EVT_MENU(DIALOGS_SINGLE_CHOICE, MyFrame::SingleChoice)
+ EVT_MENU(DIALOGS_MULTI_CHOICE, MyFrame::MultiChoice)
+ EVT_MENU(DIALOGS_FILE_OPEN, MyFrame::FileOpen)
+ EVT_MENU(DIALOGS_FILE_OPEN2, MyFrame::FileOpen2)
+ EVT_MENU(DIALOGS_FILES_OPEN, MyFrame::FilesOpen)
+ EVT_MENU(DIALOGS_FILE_SAVE, MyFrame::FileSave)
+ EVT_MENU(DIALOGS_DIR_CHOOSE, MyFrame::DirChoose)
+ EVT_MENU(DIALOGS_GENERIC_DIR_CHOOSE, MyFrame::GenericDirChoose)
+ EVT_MENU(DIALOGS_MODAL, MyFrame::ModalDlg)
+ EVT_MENU(DIALOGS_MODELESS, MyFrame::ModelessDlg)
+ EVT_MENU(DIALOGS_TIP, MyFrame::ShowTip)
+#if defined(__WXMSW__) && wxTEST_GENERIC_DIALOGS_IN_MSW
+ EVT_MENU(DIALOGS_CHOOSE_COLOUR_GENERIC, MyFrame::ChooseColourGeneric)
+ EVT_MENU(DIALOGS_CHOOSE_FONT_GENERIC, MyFrame::ChooseFontGeneric)
+#endif
+#if wxUSE_PROGRESSDLG
+ EVT_MENU(DIALOGS_PROGRESS, MyFrame::ShowProgress)
+#endif // wxUSE_PROGRESSDLG
+#if wxUSE_FINDREPLDLG
+ EVT_MENU(DIALOGS_FIND, MyFrame::ShowFindDialog)
+ EVT_MENU(DIALOGS_REPLACE, MyFrame::ShowReplaceDialog)
+
+ EVT_FIND(-1, MyFrame::OnFindDialog)
+ EVT_FIND_NEXT(-1, MyFrame::OnFindDialog)
+ EVT_FIND_REPLACE(-1, MyFrame::OnFindDialog)
+ EVT_FIND_REPLACE_ALL(-1, MyFrame::OnFindDialog)
+ EVT_FIND_CLOSE(-1, MyFrame::OnFindDialog)
+#endif // wxUSE_FINDREPLDLG
+ EVT_MENU(wxID_EXIT, MyFrame::OnExit)
+END_EVENT_TABLE()
+
+BEGIN_EVENT_TABLE(MyModalDialog, wxDialog)
+ EVT_BUTTON(-1, MyModalDialog::OnButton)
+END_EVENT_TABLE()
+
+BEGIN_EVENT_TABLE(MyModelessDialog, wxDialog)
+ EVT_BUTTON(DIALOGS_MODELESS_BTN, MyModelessDialog::OnButton)
+
+ EVT_CLOSE(MyModelessDialog::OnClose)
+END_EVENT_TABLE()
+