]>
git.saurik.com Git - wxWidgets.git/blob - samples/typetest/typetest.h
454fe984db6331143f60bfb8e55f2164ea17dddf
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Types wxWindows sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "typetest.h"
16 #ifndef _WX_TYPETEST_H_
17 #define _WX_TYPETEST_H_
19 // Define a new application type
20 class MyApp
: public wxApp
25 void DoDateDemo(wxCommandEvent
& event
);
26 void DoTimeDemo(wxCommandEvent
& event
);
27 void DoVariantDemo(wxCommandEvent
& event
);
28 void DoByteOrderDemo(wxCommandEvent
& event
);
30 void DoUnicodeDemo(wxCommandEvent
& event
);
33 wxTextCtrl
* GetTextCtrl() const { return m_textCtrl
; }
36 wxTextCtrl
* m_textCtrl
;
38 DECLARE_DYNAMIC_CLASS(MyApp
)
44 // Define a new frame type
45 class MyFrame
: public wxFrame
48 MyFrame(wxFrame
*parent
, const wxString
& title
,
49 const wxPoint
& pos
, const wxSize
& size
);
52 void OnQuit(wxCommandEvent
& event
);
53 void OnAbout(wxCommandEvent
& event
);
59 // ID for the menu commands
60 #define TYPES_QUIT wxID_EXIT
61 #define TYPES_TEXT 101
62 #define TYPES_ABOUT 102
64 #define TYPES_DATE 103
65 #define TYPES_TIME 104
66 #define TYPES_VARIANT 105
67 #define TYPES_BYTEORDER 106
68 #define TYPES_UNICODE 107