From: Stefan Csomor Date: Sat, 11 Sep 2004 08:25:17 +0000 (+0000) Subject: NO_DEFAULT support added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/939a2e801011e048db69e440c49d2f6ed2c0e49f NO_DEFAULT support added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/msgdlg.cpp b/src/mac/carbon/msgdlg.cpp index 73548ad9f2..6f1cfbfdc6 100644 --- a/src/mac/carbon/msgdlg.cpp +++ b/src/mac/carbon/msgdlg.cpp @@ -61,6 +61,7 @@ int wxMessageDialog::ShowModal() param.movable = true; param.flags = 0 ; + param.version = kStdCFStringAlertVersionOne ; bool skipDialog = false ; @@ -72,7 +73,7 @@ int wxMessageDialog::ShowModal() param.cancelText = (CFStringRef) kAlertDefaultCancelText; param.otherText = cfNoString ; param.helpButton = false ; - param.defaultButton = kAlertStdAlertOKButton; + param.defaultButton = m_dialogStyle & wxNO_DEFAULT ? kAlertStdAlertOtherButton : kAlertStdAlertOKButton; param.cancelButton = kAlertStdAlertCancelButton; } else @@ -81,7 +82,7 @@ int wxMessageDialog::ShowModal() param.cancelText = NULL; param.otherText = cfNoString ; param.helpButton = false ; - param.defaultButton = kAlertStdAlertOKButton; + param.defaultButton = m_dialogStyle & wxNO_DEFAULT ? kAlertStdAlertOtherButton : kAlertStdAlertOKButton; param.cancelButton = 0; } }