X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aad65f130d9cb77d0e9f2b7b580c54712386f77a..5b222f1c9e0acb63c781675555c76f6129316eb1:/docs/latex/wx/function.tex diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 188d6394a8..d36cd706ec 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -67,6 +67,7 @@ the corresponding topic. \helpref{wxError}{wxerror}\\ \helpref{wxExecute}{wxexecute}\\ \helpref{wxExit}{wxexit}\\ +\helpref{wxEXPLICIT}{wxexplicit}\\ \helpref{wxFAIL\_MSG}{wxfailmsg}\\ \helpref{wxFAIL}{wxfail}\\ \helpref{wxFatalError}{wxfatalerror}\\ @@ -1385,11 +1386,13 @@ The application must check for an empty return value (the user pressed Cancel). For example: \begin{verbatim} -const wxString& s = wxFileSelector("Choose a file to open"); -if (s) +wxString filename = wxFileSelector("Choose a file to open"); +if ( !filename.empty() ) { - ... + // work with the file + ... } +//else: cancelled by user \end{verbatim} \wxheading{Include files} @@ -2098,6 +2101,13 @@ The clipboard must have previously been opened for this call to succeed. \section{Miscellaneous functions}\label{miscellany} +\membersection{wxEXPLICIT}\label{wxexplicit} + +{\tt wxEXPLICIT} is a macro which expands to the C++ {\tt explicit} keyword if +the compiler supports it or nothing otherwise. Thus, it can be used even in the +code which might have to be compiled with an old compiler without support for +this language feature but still take advantage of it when it is available. + \membersection{::wxNewId}\label{wxnewid} \func{long}{wxNewId}{\void}