#include "wx/wx.h"
#endif
-#ifndef __WXMSW__
- #include "sample.xpm"
+#ifndef wxHAS_IMAGES_IN_RESOURCES
+ #include "../sample.xpm"
#endif
#include "wx/aboutdlg.h"
wxDEFAULT_FRAME_STYLE);
frame->Show(true);
- SetTopWindow(frame);
-
return true;
}
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"));
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;