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:
Vadim Zeitlin
2002-09-07 20:25:43 +00:00
parent 2918e2d254
commit 311da78ab0

View File

@@ -97,10 +97,16 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
out.PrintfV(format, args);
va_end(args);
// the native MSW msg box understands the TABs, others don't
#ifndef __WXMSW__
out.Replace(wxT("\t"),wxT(" "));
out.Replace(wxT("\t"), wxT(" "));
#endif
::wxMessageBox(out);
wxString title;
if ( wxTheApp )
title.Printf(_("%s message"), wxTheApp->GetAppName().c_str());
::wxMessageBox(out, title);
}
#endif // wxUSE_GUI
@@ -119,7 +125,7 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...)
out.PrintfV(format, args);
va_end(args);
out.Replace(wxT("\t"),wxT(" "));
out.Replace(wxT("\t"), wxT(" "));
::wxLogMessage(wxT("%s"), out.c_str());
}