]>
Commit | Line | Data |
---|---|---|
b2b3ccc5 | 1 | ///////////////////////////////////////////////////////////////////////////// |
14057bf4 | 2 | // Name: minifram.h |
b2b3ccc5 RR |
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 and Robert Roebling | |
2f6c54eb | 9 | // Licence: wxWindows licence |
b2b3ccc5 RR |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #include "wx/minifram.h" | |
13 | ||
14 | // Define a new application | |
15 | class MyApp: public wxApp | |
16 | { | |
17 | public: | |
18 | bool OnInit(void); | |
19 | bool InitToolbar(wxToolBar* toolBar); | |
20 | }; | |
21 | ||
8ce63e9d RR |
22 | // Define a new mini frame |
23 | class MyMiniFrame: public wxMiniFrame | |
24 | { | |
25 | public: | |
0ff72086 | 26 | MyMiniFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"), |
8ce63e9d RR |
27 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize ); |
28 | ||
3f6187f1 | 29 | virtual bool Destroy(); |
8ce63e9d RR |
30 | void OnReparent(wxCommandEvent& event); |
31 | ||
32 | DECLARE_EVENT_TABLE() | |
33 | }; | |
34 | ||
b2b3ccc5 | 35 | // Define a new frame |
8ce63e9d | 36 | class MyMainFrame: public wxFrame |
b2b3ccc5 RR |
37 | { |
38 | public: | |
0ff72086 | 39 | MyMainFrame(wxFrame *parent, wxWindowID id = wxID_ANY, const wxString& title = _T("wxToolBar Sample"), |
b2b3ccc5 RR |
40 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize ); |
41 | ||
3f6187f1 | 42 | void OnExit(wxCommandEvent&); |
8ce63e9d | 43 | void OnReparent(wxCommandEvent& event); |
a7db4235 RR |
44 | void OnSetSize_150_150(wxCommandEvent &event); |
45 | void OnSetSize_200_200(wxCommandEvent &event); | |
46 | void OnSetMaxSize_150_150(wxCommandEvent &event); | |
47 | void OnSetMaxSize_300_300(wxCommandEvent &event); | |
b2b3ccc5 RR |
48 | |
49 | DECLARE_EVENT_TABLE() | |
50 | }; | |
51 | ||
8ce63e9d RR |
52 | #define ID_TOOLBAR 500 |
53 | #define ID_REPARENT 501 | |
b2b3ccc5 | 54 |