X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19bc15143af345787753717e2a1b22a29e339469..64b9776ca61d8d589da77c1524ae8ae9425dd826:/demos/forty/forty.cpp diff --git a/demos/forty/forty.cpp b/demos/forty/forty.cpp index 5e3525e256..350889ce4a 100644 --- a/demos/forty/forty.cpp +++ b/demos/forty/forty.cpp @@ -304,10 +304,6 @@ FortyFrame::ToggleCardSize(wxCommandEvent& event) // stAboutDialog //---------------------------------------------------------------------------- -BEGIN_EVENT_TABLE(FortyAboutDialog,wxDialog) - EVT_BUTTON(wxID_CLOSE, wxDialog::OnOK) -END_EVENT_TABLE() - FortyAboutDialog::FortyAboutDialog( wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style ) : wxDialog( parent, id, title, position, size, style ) @@ -367,6 +363,7 @@ bool FortyAboutDialog::AddControls(wxWindow* parent) wxButton *item2 = new wxButton( parent, wxID_CLOSE ); item2->SetDefault(); item2->SetFocus(); + SetAffirmativeId(wxID_CLOSE); item0->Add( item2, 0, wxALIGN_RIGHT|wxALL, 5 ); @@ -378,4 +375,3 @@ bool FortyAboutDialog::AddControls(wxWindow* parent) return true; } -