]> git.saurik.com Git - wxWidgets.git/commitdiff
test wxCANCEL_DEFAULT flag
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Sep 2008 23:40:15 +0000 (23:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 11 Sep 2008 23:40:15 +0000 (23:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index d0e24dea0976b85a63b3e0b2f8dd0ff343086101..0a3c4638ba2bea4797623b80603cdf2f4287b7a3 100644 (file)
@@ -2339,7 +2339,9 @@ private:
                                         const wxString& title,
                                         int style)
     {
                                         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();
     }
         dlg.SetExtendedMessage("Note that this is a custom log dialog.");
         dlg.ShowModal();
     }