From c3d6e0aa29c2973e05bcd6b0f082242b7cf5b04f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Mon, 9 Oct 2006 18:57:07 +0000 Subject: [PATCH] menu id 0 doesn't work under Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/animate/anitest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/animate/anitest.cpp b/samples/animate/anitest.cpp index 52d607f13a..8f433e3556 100644 --- a/samples/animate/anitest.cpp +++ b/samples/animate/anitest.cpp @@ -46,11 +46,11 @@ IMPLEMENT_APP(MyApp) enum { - wxID_PLAY + ID_PLAY = 1 }; BEGIN_EVENT_TABLE(MyFrame, wxFrame) - EVT_MENU(wxID_PLAY, MyFrame::OnPlay) + EVT_MENU(ID_PLAY, MyFrame::OnPlay) EVT_MENU(wxID_STOP, MyFrame::OnStop) EVT_MENU(wxID_ABOUT, MyFrame::OnAbout) EVT_MENU(wxID_EXIT, MyFrame::OnQuit) @@ -91,7 +91,7 @@ bool MyApp::OnInit() file_menu->Append(wxID_EXIT); wxMenu *play_menu = new wxMenu; - play_menu->Append(wxID_PLAY, _T("Play\tCtrl+P"), _T("Play the animation")); + play_menu->Append(ID_PLAY, _T("Play\tCtrl+P"), _T("Play the animation")); play_menu->Append(wxID_STOP, _T("Stop\tCtrl+P"), _T("Stop the animation")); wxMenu *help_menu = new wxMenu; @@ -233,7 +233,7 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnUpdateUI(wxUpdateUIEvent& WXUNUSED(event) ) { GetMenuBar()->FindItem(wxID_STOP)->Enable(m_animationCtrl->IsPlaying()); - GetMenuBar()->FindItem(wxID_PLAY)->Enable(!m_animationCtrl->IsPlaying()); + GetMenuBar()->FindItem(ID_PLAY)->Enable(!m_animationCtrl->IsPlaying()); } // --------------------------------------------------------------------------- -- 2.45.2