]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wrapsizer/wrapsizer.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / samples / wrapsizer / wrapsizer.cpp
index 7ad2c93903b72586c4a66b96f99be39ed3fba0f8..1079528b44818726583611e9da5a14de2df59184 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxWidgets sample demonstrating wxWrapSizer use
 // Author:      Arne Steinarson
 // Created:     21.01.2008
-// RCS-ID:      $Id$
 // Copyright:   (c) Arne Steinarson
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -145,7 +144,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