]>
Commit | Line | Data |
---|---|---|
14d1ccd8 JS |
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); | |
13437238 | 17 | bool InitToolbar(wxToolBar* toolBar); |
14d1ccd8 JS |
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); | |
14d1ccd8 JS |
29 | void OnQuit(wxCommandEvent& event); |
30 | void OnAbout(wxCommandEvent& event); | |
13437238 JS |
31 | void OnToolLeftClick(wxCommandEvent& event); |
32 | void OnToolEnter(wxCommandEvent& event); | |
14d1ccd8 JS |
33 | |
34 | private: | |
35 | wxTextCtrl* m_textWindow; | |
36 | ||
37 | DECLARE_EVENT_TABLE() | |
38 | }; | |
39 | ||
81d66cf3 JS |
40 | #define ID_TOOLBAR 500 |
41 |