added (and documented) wxSafeShowMessage, use it in wxLogFatalError instead of wxMessageBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -180,6 +180,7 @@ the corresponding topic.
|
||||
\helpref{wxResourceRegisterBitmapData}{registerbitmapdata}\\
|
||||
\helpref{wxResourceRegisterIconData}{wxresourceregistericondata}\\
|
||||
\helpref{wxRmdir}{wxrmdir}\\
|
||||
\helpref{wxSafeShowMessage}{wxsafeshowmessage}\\
|
||||
\helpref{wxSafeYield}{wxsafeyield}\\
|
||||
\helpref{wxSetClipboardData}{wxsetclipboarddata}\\
|
||||
\helpref{wxSetCursor}{wxsetcursor}\\
|
||||
@@ -3168,6 +3169,32 @@ trace masks.
|
||||
\item wxTraceOleCalls: trace OLE method calls (Win32 only)
|
||||
\end{itemize}
|
||||
|
||||
\membersection{::wxSafeShowMessage}\label{wxsafeshowmessage}
|
||||
|
||||
\func{void}{wxSafeShowMessage}{\param{const wxString\& }{title}, \param{const wxString\& }{text}}
|
||||
|
||||
This function shows a message to the user in a safe way and should be safe to
|
||||
call even before the application has been initialized or if it is currently in
|
||||
some other strange state (for example, about to crash). Under Windows this
|
||||
function shows a message box using a native dialog instead of
|
||||
\helpref{wxMessageBox}{wxmessagebox} (which might be unsafe to call), elsewhere
|
||||
it simply prints the message to the standard output using the title as prefix.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{title}{The title of the message box shown to the user or the prefix
|
||||
of the message string}
|
||||
|
||||
\docparam{text}{The text to show to the user}
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxLogFatalError}{wxlogfatalerror}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/log.h>
|
||||
|
||||
\membersection{::wxSysErrorCode}\label{wxsyserrorcode}
|
||||
|
||||
\func{unsigned long}{wxSysErrorCode}{\void}
|
||||
|
Reference in New Issue
Block a user