]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/deprecated/resource/resource.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Dialog resource sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
18 virtual bool OnInit();
23 class MyPanel
: public wxPanel
26 MyPanel(wxWindow
*parent
, wxWindowID id
, const wxPoint
& pos
,
27 const wxSize
& size
, int style
, const wxString
&name
);
28 void OnClick(wxMouseEvent
&event
);
34 class MyFrame
: public wxFrame
37 MyFrame(wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
38 const wxPoint
& pos
, const wxSize
& size
);
39 void OnQuit(wxCommandEvent
& event
);
40 void OnAbout(wxCommandEvent
& event
);
41 void OnTestDialog(wxCommandEvent
& event
);
49 class MyDialog
: public wxDialog
52 void OnOk(wxCommandEvent
& event
);
53 void OnCancel(wxCommandEvent
& event
);
59 // the values should be the same as in menu.wxr file!
62 RESOURCE_TESTDIALOG
= 2,