add SetEscapeId() test (see #10746)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-05-07 17:01:59 +00:00
parent 3821ccfaa6
commit 5a58a1342d

View File

@ -1998,14 +1998,15 @@ MyModalDialog::MyModalDialog(wxWindow *parent)
m_btnModeless = new wxButton(this, wxID_ANY, _T("Mode&less dialog"));
m_btnDelete = new wxButton(this, wxID_ANY, _T("&Delete button"));
wxButton *btnOk = new wxButton(this, wxID_CANCEL, _T("&Close"));
sizerTop->Add(m_btnModal, 0, wxALIGN_CENTER | wxALL, 5);
sizerTop->Add(m_btnModeless, 0, wxALIGN_CENTER | wxALL, 5);
sizerTop->Add(m_btnDelete, 0, wxALIGN_CENTER | wxALL, 5);
sizerTop->Add(btnOk, 0, wxALIGN_CENTER | wxALL, 5);
sizerTop->Add(new wxButton(this, wxID_CLOSE), 0, wxALIGN_CENTER | wxALL, 5);
SetSizerAndFit(sizerTop);
SetEscapeId(wxID_CLOSE);
m_btnModal->SetFocus();
m_btnModal->SetDefault();
}