From 311da78ab09eae86859ab8c9f3297e536fda0604 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Sep 2002 20:25:43 +0000 Subject: [PATCH] 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 --- src/common/msgout.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 1ac9f944f8..0d03ccc7c1 100755 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -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()); } -- 2.45.2