-ScanCodeDialog::ScanCodeDialog( wxWindow* parent, wxWindowID id,
- const int code, const wxString &descr, const wxString& title )
- : wxDialog( parent, id, title, wxDefaultPosition, wxSize(96*2,76*2) )
-{
- new wxStaticText( this, wxID_ANY, _T("Scancode"), wxPoint(4*2,3*2),
- wxSize(31*2,12*2) );
- m_ScanCode = new ScanCodeCtrl( this, wxID_ANY, code, wxPoint(37*2,6*2),
- wxSize(53*2,14*2) );
-
- new wxStaticText( this, wxID_ANY, _T("Description"), wxPoint(4*2,24*2),
- wxSize(32*2,12*2) );
- m_Description = new wxTextCtrl( this, wxID_ANY, 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) );
-}