Mercurial > mercurial > hgweb_mpos.cgi
comparison myframe.h @ 0:6235b9a84d53
First Release.
| author | pyon@macmini |
|---|---|
| date | Mon, 21 Apr 2014 20:44:57 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:6235b9a84d53 |
|---|---|
| 1 // Filename : myframe.h | |
| 2 // Last Change: 21-Apr-2014. | |
| 3 // | |
| 4 | |
| 5 #ifndef __MYFRAME_H__ | |
| 6 #define __MYFRAME_H__ | |
| 7 | |
| 8 #include <wx/artprov.h> | |
| 9 #include <wx/xrc/xmlres.h> | |
| 10 #include <wx/string.h> | |
| 11 #include <wx/textctrl.h> | |
| 12 #include <wx/gdicmn.h> | |
| 13 #include <wx/font.h> | |
| 14 #include <wx/colour.h> | |
| 15 #include <wx/settings.h> | |
| 16 #include <wx/button.h> | |
| 17 #include <wx/sizer.h> | |
| 18 #include <wx/frame.h> | |
| 19 | |
| 20 | |
| 21 class MyFrame : public wxFrame | |
| 22 { | |
| 23 DECLARE_EVENT_TABLE() | |
| 24 private: | |
| 25 | |
| 26 protected: | |
| 27 wxTextCtrl* m_textCtrlPos; | |
| 28 wxButton* m_buttonRec; | |
| 29 wxTextCtrl* m_textCtrlRec; | |
| 30 | |
| 31 public: | |
| 32 MyFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Mouse Position"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 200,200 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); | |
| 33 ~MyFrame(); | |
| 34 void OnWinMove( wxMoveEvent& WXUNUSED(event) ); | |
| 35 void OnRec( wxCommandEvent& WXUNUSED(event) ); | |
| 36 }; | |
| 37 | |
| 38 enum | |
| 39 { | |
| 40 ID_REC = wxID_HIGHEST + 1, | |
| 41 }; | |
| 42 | |
| 43 #endif //__MYFRAME_H__ | |
| 44 |
