]> git.saurik.com Git - wxWidgets.git/blob - samples/toolbar/test.h
Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
[wxWidgets.git] / samples / toolbar / test.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: test.h
3 // Purpose: wxToolBar sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 23/07/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // Define a new application
13 class MyApp: public wxApp
14 {
15 public:
16 bool OnInit(void);
17 bool InitToolbar(wxToolBar* toolBar);
18 };
19
20 // Define a new frame
21 class MyFrame: public wxFrame
22 {
23 public:
24 MyFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
25 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
26 long style = wxDEFAULT_FRAME_STYLE);
27
28 void OnCloseWindow(wxCloseEvent& event);
29 void OnQuit(wxCommandEvent& event);
30 void OnAbout(wxCommandEvent& event);
31 void OnToolLeftClick(wxCommandEvent& event);
32 void OnToolEnter(wxCommandEvent& event);
33
34 private:
35 wxTextCtrl* m_textWindow;
36
37 DECLARE_EVENT_TABLE()
38 };
39
40 #define ID_TOOLBAR 500
41