]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dialogs/dialogs.cpp
removed testing code leftovers
[wxWidgets.git] / samples / dialogs / dialogs.cpp
index d0e24dea0976b85a63b3e0b2f8dd0ff343086101..54a4566dccd7f1cd55ac1fd2d5b954da01859870 100644 (file)
@@ -654,10 +654,10 @@ void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event))
 {
     wxMessageDialog dialog(this,
                            "This is a message box\n"
-                           "A long, long string to test out the message box "
-                           "layout properly.",
+                           "This is a long, long string to test out if the message box "
+                           "is laid out properly.",
                            "Message box text",
-                           wxVSCROLL | wxCENTER |
+                           wxCENTER |
                            wxNO_DEFAULT | wxYES_NO | wxCANCEL |
                            wxICON_INFORMATION);
 
@@ -2339,7 +2339,9 @@ private:
                                         const wxString& title,
                                         int style)
     {
-        wxMessageDialog dlg(NULL, message, title, wxOK | style);
+        wxMessageDialog dlg(NULL, message, title,
+                            wxOK | wxCANCEL | wxCANCEL_DEFAULT | style);
+        dlg.SetOKCancelLabels(wxID_COPY, wxID_OK);
         dlg.SetExtendedMessage("Note that this is a custom log dialog.");
         dlg.ShowModal();
     }