-class ScanCodeDialog : public wxDialog
-{
-public:
- ScanCodeDialog( wxWindow* parent, wxWindowID id, const int code,
- const wxString &descr, const wxString& title );
- int GetValue();
-private:
- ScanCodeCtrl *m_ScanCode;
- wxTextCtrl *m_Description;
-};
-
-ScanCodeDialog::ScanCodeDialog( wxWindow* parent, wxWindowID id,
- const int code, const wxString &descr, const wxString& title )
- : wxDialog( parent, id, title, wxPoint(-1, -1), wxSize(96*2,76*2) )
-{
- new wxStaticText( this, -1, _T("Scancode"), wxPoint(4*2,3*2),
- wxSize(31*2,12*2) );
- m_ScanCode = new ScanCodeCtrl( this, -1, code, wxPoint(37*2,6*2),
- wxSize(53*2,14*2) );
-
- new wxStaticText( this, -1, _T("Description"), wxPoint(4*2,24*2),
- wxSize(32*2,12*2) );
- m_Description = new wxTextCtrl( this, -1, descr, wxPoint(37*2,27*2),
- wxSize(53*2,14*2) );
-
- new wxButton( this, wxID_OK, _T("Ok"), wxPoint(20*2,50*2), wxSize(20*2,13*2) );
- new wxButton( this, wxID_CANCEL, _T("Cancel"), wxPoint(44*2,50*2),
- wxSize(25*2,13*2) );
-}