X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7092398891c83b12c84305d8d0206bdbe415fa0..fa699cbaaf217af186cd04dd10d6ec67c8667136:/samples/wrapsizer/wrapsizer.cpp diff --git a/samples/wrapsizer/wrapsizer.cpp b/samples/wrapsizer/wrapsizer.cpp index 7ad2c93903..ad2c6fc6bf 100644 --- a/samples/wrapsizer/wrapsizer.cpp +++ b/samples/wrapsizer/wrapsizer.cpp @@ -145,7 +145,7 @@ WrapSizerFrame::WrapSizerFrame() // OK Button sizerRoot->Add(new wxButton(m_panel, wxID_OK), wxSizerFlags().Centre().DoubleBorder()); - Connect(wxID_OK, wxEVT_COMMAND_BUTTON_CLICKED, + Connect(wxID_OK, wxEVT_BUTTON, wxCommandEventHandler(WrapSizerFrame::OnButton)); // Set sizer for the panel