]> git.saurik.com Git - wxWidgets.git/blob - samples/typetest/typetest.h
by default the ctrl accepts keyboard input now (why wouldn't it?)
[wxWidgets.git] / samples / typetest / typetest.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: typetest.h
3 // Purpose: Types wxWindows sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma interface "typetest.h"
14 #endif
15
16 #ifndef _WX_TYPETEST_H_
17 #define _WX_TYPETEST_H_
18
19 // Define a new application type
20 class MyApp: public wxApp
21 {
22 public:
23 bool OnInit(void);
24
25 void DoDateDemo(wxCommandEvent& event);
26 void DoTimeDemo(wxCommandEvent& event);
27 void DoVariantDemo(wxCommandEvent& event);
28
29 wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
30
31 private:
32 wxTextCtrl* m_textCtrl;
33
34 DECLARE_DYNAMIC_CLASS(MyApp)
35 DECLARE_EVENT_TABLE()
36 };
37
38 DECLARE_APP(MyApp)
39
40 // Define a new frame type
41 class MyFrame: public wxFrame
42 {
43 public:
44 MyFrame(wxFrame *parent, const wxString& title,
45 const wxPoint& pos, const wxSize& size);
46
47 public:
48 void OnQuit(wxCommandEvent& event);
49 void OnAbout(wxCommandEvent& event);
50 bool OnClose(void) { return TRUE; }
51
52 DECLARE_EVENT_TABLE()
53
54 };
55
56 // ID for the menu commands
57 #define TYPES_QUIT wxID_EXIT
58 #define TYPES_TEXT 101
59 #define TYPES_ABOUT 102
60
61 #define TYPES_DATE 103
62 #define TYPES_TIME 104
63 #define TYPES_VARIANT 105
64
65 #endif
66 // _WX_TYPETEST_H_
67