From: Vadim Zeitlin Date: Thu, 11 Sep 2008 23:40:15 +0000 (+0000) Subject: test wxCANCEL_DEFAULT flag X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f0afc953c91b677e96849ca7be2c1ccdbb37dd2b test wxCANCEL_DEFAULT flag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index d0e24dea09..0a3c4638ba 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -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(); }