]> git.saurik.com Git - wxWidgets.git/blob - samples/animate/anitest.h
Don't use any icon for items inserted without one in wxMSW wxListCtrl.
[wxWidgets.git] / samples / animate / anitest.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: anitest.cpp
3 // Purpose: anitest sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 02/07/2001
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
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);
33 void OnSetNullAnimation(wxCommandEvent& event);
34 void OnSetInactiveBitmap(wxCommandEvent& event);
35 void OnSetNoAutoResize(wxCommandEvent& event);
36 void OnSetBgColor(wxCommandEvent& event);
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
45 wxAnimationCtrl* GetAnimationCtrl() const { return m_animationCtrl; }
46
47 protected:
48 wxAnimationCtrl* m_animationCtrl;
49
50 private:
51 DECLARE_EVENT_TABLE()
52 };