#endif
#include "wx/thread.h"
+#include "wx/modalhook.h"
#include "wx/osx/uma.h"
const wxString& caption,
long style,
const wxPoint& WXUNUSED(pos))
- : wxMessageDialogWithCustomLabels(parent, message, caption, style)
+ : wxMessageDialogBase(parent, message, caption, style)
{
}
int wxMessageDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
int resultbutton = wxID_CANCEL;
const long style = GetMessageDialogStyle();
//
// if the extended text is not empty we ignore the caption
// and use the message and the extended message
-
-
+
+
wxString msgtitle,msgtext;
if(m_extendedMessage.IsEmpty())
{
{
DialogRef alertRef;
CreateStandardAlert( alertType, cfTitle, cfText, ¶m, &alertRef );
+ wxDialog::OSXBeginModalDialog();
RunStandardAlert( alertRef, NULL, &result );
+ wxDialog::OSXEndModalDialog();
}
else
{
}
}
}
-
+
SetReturnCode(resultbutton);
return resultbutton;