From 6ea0cc70f73396407b8759fed3b4168416a86c3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 10 Sep 2006 23:19:50 +0000 Subject: [PATCH 1/1] use wxID_OPEN instead of INTERNAT_OPEN git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/internat/internat.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index 089ed4b3d0..4bde4cdea4 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -81,8 +81,7 @@ enum INTERNAT_TEST, INTERNAT_TEST_1, INTERNAT_TEST_2, - INTERNAT_TEST_3, - INTERNAT_OPEN + INTERNAT_TEST_3 }; // language data @@ -144,7 +143,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_MENU(wxID_EXIT, MyFrame::OnQuit) EVT_MENU(wxID_ABOUT, MyFrame::OnAbout) EVT_MENU(INTERNAT_TEST, MyFrame::OnPlay) - EVT_MENU(INTERNAT_OPEN, MyFrame::OnOpen) + EVT_MENU(wxID_OPEN, MyFrame::OnOpen) EVT_MENU(INTERNAT_TEST_1, MyFrame::OnTest1) EVT_MENU(INTERNAT_TEST_2, MyFrame::OnTest2) EVT_MENU(INTERNAT_TEST_3, MyFrame::OnTest3) @@ -227,7 +226,7 @@ bool MyApp::OnInit() file_menu->Append(wxID_EXIT, _("E&xit")); wxMenu *test_menu = new wxMenu; - test_menu->Append(INTERNAT_OPEN, _("&Open bogus file")); + test_menu->Append(wxID_OPEN, _("&Open bogus file")); test_menu->Append(INTERNAT_TEST, _("&Play a game")); test_menu->AppendSeparator(); test_menu->Append(INTERNAT_TEST_1, _("&1 _() (gettext)")); -- 2.45.2