]>
Commit | Line | Data |
---|---|---|
72045d57 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: anitest.cpp | |
3 | // Purpose: anitest sample | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 02/07/2001 | |
72045d57 VZ |
7 | // Copyright: (c) Julian Smart |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #include "wx/animate.h" | |
12 | ||
13 | // Define a new application | |
14 | class MyApp : public wxApp | |
15 | { | |
16 | public: | |
17 | bool OnInit(); | |
18 | }; | |
19 | ||
72045d57 VZ |
20 | // Define a new frame |
21 | class MyFrame : public wxFrame | |
22 | { | |
23 | public: | |
24 | ||
25 | MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, | |
26 | const wxPoint& pos, const wxSize& size, const long style); | |
27 | ~MyFrame(); | |
28 | ||
29 | void OnAbout(wxCommandEvent& event); | |
30 | void OnQuit(wxCommandEvent& event); | |
31 | ||
32 | void OnPlay(wxCommandEvent& event); | |
cf46511d VZ |
33 | void OnSetNullAnimation(wxCommandEvent& event); |
34 | void OnSetInactiveBitmap(wxCommandEvent& event); | |
35 | void OnSetNoAutoResize(wxCommandEvent& event); | |
36 | void OnSetBgColor(wxCommandEvent& event); | |
72045d57 VZ |
37 | void OnStop(wxCommandEvent& event); |
38 | ||
39 | void OnUpdateUI(wxUpdateUIEvent& event); | |
40 | ||
41 | #if wxUSE_FILEDLG | |
42 | void OnOpen(wxCommandEvent& event); | |
43 | #endif // wxUSE_FILEDLG | |
44 | ||
72045d57 VZ |
45 | wxAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; } |
46 | ||
47 | protected: | |
72045d57 VZ |
48 | wxAnimationCtrl* m_animationCtrl; |
49 | ||
50 | private: | |
51 | DECLARE_EVENT_TABLE() | |
52 | }; |