X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ad2fe62d167bd7764b3d7eade75baa84a2a00e4..53698f1db2ee4a0fdfed1ea6d848d69e28114944:/samples/dialogs/dialogs.cpp diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index d0e24dea09..54a4566dcc 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -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(); }