show the app name in the title of wxMsgOut message boxes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,10 +97,16 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
|
|||||||
out.PrintfV(format, args);
|
out.PrintfV(format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
|
// the native MSW msg box understands the TABs, others don't
|
||||||
#ifndef __WXMSW__
|
#ifndef __WXMSW__
|
||||||
out.Replace(wxT("\t"), wxT(" "));
|
out.Replace(wxT("\t"), wxT(" "));
|
||||||
#endif
|
#endif
|
||||||
::wxMessageBox(out);
|
|
||||||
|
wxString title;
|
||||||
|
if ( wxTheApp )
|
||||||
|
title.Printf(_("%s message"), wxTheApp->GetAppName().c_str());
|
||||||
|
|
||||||
|
::wxMessageBox(out, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
Reference in New Issue
Block a user