]>
git.saurik.com Git - wxWidgets.git/blob - user/wxTest/wxTest.h
4 * Author: Robert Roebling
6 * Copyright: (C) 1997, GNU (Robert Roebling)
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #include "wx/dcscreen.h"
32 #include "wx/splitter.h"
33 #include "wx/toolbar.h"
34 #include "wx/fontdlg.h"
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
44 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
48 class MyTimer
: public wxTimer
55 printf( "OnTimer.\n" );
59 //-----------------------------------------------------------------------------
61 //-----------------------------------------------------------------------------
63 class MyDialog
: public wxDialog
65 DECLARE_DYNAMIC_CLASS(MyDialog
)
70 MyDialog( wxWindow
*parent
);
72 void OnReturnButton( wxCommandEvent
&event
);
73 void OnHelloButton( wxCommandEvent
&event
);
75 void OnCheckBox( wxCommandEvent
&event
);
76 void OnCheckBoxButtons( wxCommandEvent
&event
);
78 void OnTextCtrl( wxCommandEvent
&event
);
79 void OnTextCtrlButtons( wxCommandEvent
&event
);
81 void OnChoice( wxCommandEvent
&event
);
82 void OnChoiceButtons( wxCommandEvent
&event
);
84 void OnListBox( wxCommandEvent
&event
);
85 void OnListBoxButtons( wxCommandEvent
&event
);
87 void OnRadioBox( wxCommandEvent
&event
);
88 void OnRadioBoxButtons( wxCommandEvent
&event
);
90 wxCheckBox
*m_checkbox
;
91 wxTextCtrl
*m_textctrl
;
94 wxRadioBox
*m_radiobox
;
95 wxStaticText
*m_text1
;
96 wxStaticText
*m_text2
;
101 //-----------------------------------------------------------------------------
103 //-----------------------------------------------------------------------------
105 class MyCanvas
: public wxScrolledWindow
107 DECLARE_DYNAMIC_CLASS(MyCanvas
)
112 MyCanvas( wxWindow
*parent
, wxWindowID
, const wxPoint
&pos
, const wxSize
&size
);
114 void OnPaint( wxPaintEvent
&event
);
118 wxBitmap
*my_backstore
;
122 DECLARE_EVENT_TABLE()
125 //-----------------------------------------------------------------------------
127 //-----------------------------------------------------------------------------
129 class MyFrame
: public wxFrame
131 DECLARE_DYNAMIC_CLASS(MyFrame
)
136 void OnSize( wxSizeEvent
&event
);
137 void OnOpenDialog( wxCommandEvent
&event
);
138 void OnFontDialog( wxCommandEvent
&event
);
139 void OnMsg( wxCommandEvent
&event
);
140 void OnDialog( wxCommandEvent
&event
);
141 void OnAbout( wxCommandEvent
&event
);
142 void OnQuit( wxCommandEvent
&event
);
149 DECLARE_EVENT_TABLE()
152 //-----------------------------------------------------------------------------
154 //-----------------------------------------------------------------------------
156 class MyApp
: public wxApp
161 virtual bool OnInit(void);