X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..c29c95fe24973b94fd724db767193171ca7c513d:/samples/animate/anitest.cpp diff --git a/samples/animate/anitest.cpp b/samples/animate/anitest.cpp index d2f5bef31a..e2500c0fc5 100644 --- a/samples/animate/anitest.cpp +++ b/samples/animate/anitest.cpp @@ -29,7 +29,7 @@ #endif #ifndef __WXMSW__ - #include "sample.xpm" + #include "../sample.xpm" #endif #include "wx/aboutdlg.h" @@ -102,8 +102,6 @@ bool MyApp::OnInit() wxDEFAULT_FRAME_STYLE); frame->Show(true); - SetTopWindow(frame); - return true; } @@ -133,7 +131,7 @@ MyFrame::MyFrame(wxWindow *parent, wxMenu *play_menu = new wxMenu; play_menu->Append(ID_PLAY, wxT("Play\tCtrl+P"), wxT("Play the animation")); - play_menu->Append(wxID_STOP, wxT("Stop\tCtrl+P"), wxT("Stop the animation")); + play_menu->Append(wxID_STOP, wxT("Stop\tCtrl+S"), wxT("Stop the animation")); play_menu->AppendSeparator(); play_menu->Append(ID_SET_NULL_ANIMATION, wxT("Set null animation"), wxT("Sets the empty animation in the control")); @@ -295,7 +293,7 @@ void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event)) m_animationCtrl->Play(); #else wxFileInputStream stream(filename); - if (!stream.Ok()) + if (!stream.IsOk()) { wxLogError(wxT("Sorry, this animation is not a valid format for wxAnimation.")); return;