+BEGIN_EVENT_TABLE(MyCanvas, wxScrolledWindow)
+ EVT_PAINT(MyCanvas::OnPaint)
+END_EVENT_TABLE()
+
+
+
+BEGIN_EVENT_TABLE(MyFrame, wxFrame)
+ EVT_MENU(DIALOGS_MESSAGE_BOX, MyFrame::MessageBox)
+
+#if wxUSE_COLOURDLG
+ EVT_MENU(DIALOGS_CHOOSE_COLOUR, MyFrame::ChooseColour)
+#endif // wxUSE_COLOURDLG
+
+#if wxUSE_FONTDLG
+ EVT_MENU(DIALOGS_CHOOSE_FONT, MyFrame::ChooseFont)
+#endif // wxUSE_FONTDLG
+
+#if wxUSE_LOG_DIALOG
+ EVT_MENU(DIALOGS_LOG_DIALOG, MyFrame::LogDialog)
+#endif // wxUSE_LOG_DIALOG
+
+#if wxUSE_TEXTDLG
+ EVT_MENU(DIALOGS_TEXT_ENTRY, MyFrame::TextEntry)
+ EVT_MENU(DIALOGS_PASSWORD_ENTRY, MyFrame::PasswordEntry)
+#endif // wxUSE_TEXTDLG
+
+#if wxUSE_NUMBERDLG
+ EVT_MENU(DIALOGS_NUM_ENTRY, MyFrame::NumericEntry)
+#endif // wxUSE_NUMBERDLG
+
+#if wxUSE_CHOICEDLG
+ EVT_MENU(DIALOGS_SINGLE_CHOICE, MyFrame::SingleChoice)
+ EVT_MENU(DIALOGS_MULTI_CHOICE, MyFrame::MultiChoice)
+#endif // wxUSE_CHOICEDLG
+
+#if wxUSE_FILEDLG
+ 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)
+#endif // wxUSE_FILEDLG
+
+#if USE_FILEDLG_GENERIC
+ EVT_MENU(DIALOGS_FILE_OPEN_GENERIC, MyFrame::FileOpenGeneric)
+ EVT_MENU(DIALOGS_FILES_OPEN_GENERIC, MyFrame::FilesOpenGeneric)
+ EVT_MENU(DIALOGS_FILE_SAVE_GENERIC, MyFrame::FileSaveGeneric)
+#endif // USE_FILEDLG_GENERIC
+
+#if wxUSE_DIRDLG
+ EVT_MENU(DIALOGS_DIR_CHOOSE, MyFrame::DirChoose)
+ EVT_MENU(DIALOGS_DIRNEW_CHOOSE, MyFrame::DirChooseNew)
+#endif // wxUSE_DIRDLG
+
+#if USE_MODAL_PRESENTATION
+ EVT_MENU(DIALOGS_MODAL, MyFrame::ModalDlg)
+ EVT_MENU(DIALOGS_MODELESS, MyFrame::ModelessDlg)
+#endif // USE_MODAL
+
+#if wxUSE_STARTUP_TIPS
+ EVT_MENU(DIALOGS_TIP, MyFrame::ShowTip)
+#endif // wxUSE_STARTUP_TIPS
+
+#if USE_FONTDLG_GENERIC
+ EVT_MENU(DIALOGS_CHOOSE_FONT_GENERIC, MyFrame::ChooseFontGeneric)
+#endif // USE_FONTDLG_GENERIC
+
+#if USE_DIRDLG_GENERIC
+ EVT_MENU(DIALOGS_GENERIC_DIR_CHOOSE, MyFrame::GenericDirChoose)
+#endif // wxMSW || wxMAC
+
+#if USE_COLOURDLG_GENERIC
+ EVT_MENU(DIALOGS_CHOOSE_COLOUR_GENERIC, MyFrame::ChooseColourGeneric)
+#endif // USE_COLOURDLG_GENERIC
+
+#if wxUSE_PROGRESSDLG
+ EVT_MENU(DIALOGS_PROGRESS, MyFrame::ShowProgress)
+#endif // wxUSE_PROGRESSDLG
+
+#if wxUSE_BUSYINFO
+ EVT_MENU(DIALOGS_BUSYINFO, MyFrame::ShowBusyInfo)
+#endif // wxUSE_BUSYINFO
+
+#if wxUSE_FINDREPLDLG
+ EVT_MENU(DIALOGS_FIND, MyFrame::ShowFindDialog)
+ EVT_MENU(DIALOGS_REPLACE, MyFrame::ShowReplaceDialog)
+
+ EVT_FIND(wxID_ANY, MyFrame::OnFindDialog)
+ EVT_FIND_NEXT(wxID_ANY, MyFrame::OnFindDialog)
+ EVT_FIND_REPLACE(wxID_ANY, MyFrame::OnFindDialog)
+ EVT_FIND_REPLACE_ALL(wxID_ANY, MyFrame::OnFindDialog)
+ EVT_FIND_CLOSE(wxID_ANY, MyFrame::OnFindDialog)
+#endif // wxUSE_FINDREPLDLG
+
+ EVT_MENU(DIALOGS_PROPERTY_SHEET, MyFrame::OnPropertySheet)
+ EVT_MENU(DIALOGS_REQUEST, MyFrame::OnRequestUserAttention)
+
+ EVT_MENU(wxID_EXIT, MyFrame::OnExit)
+END_EVENT_TABLE()
+
+#if USE_MODAL_PRESENTATION
+
+ BEGIN_EVENT_TABLE(MyModalDialog, wxDialog)
+ EVT_BUTTON(wxID_ANY, MyModalDialog::OnButton)
+ END_EVENT_TABLE()
+
+ BEGIN_EVENT_TABLE(MyModelessDialog, wxDialog)
+ EVT_BUTTON(DIALOGS_MODELESS_BTN, MyModelessDialog::OnButton)
+ EVT_CLOSE(MyModelessDialog::OnClose)
+ END_EVENT_TABLE()
+
+#endif // USE_MODAL_PRESENTATION
+