X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a42b93aaade954a1ae5aea72153865a862a1d9d2..dbddf573912254bb14b4ca70c5c5db6248051294:/docs/latex/wx/function.tex?ds=sidebyside diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index e19bae0164..bfd6094c88 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -36,7 +36,7 @@ void MyThread::Foo(void) // Call GUI here: my_window->DrawSomething(); - + wxMutexGuiLeave(); } \end{verbatim} @@ -88,7 +88,7 @@ a directory. \membersection{::wxFileModificationTime} -\func{time_t}{wxFileModificationTime}{\param{const wxString\& }{filename}} +\func{time\_t}{wxFileModificationTime}{\param{const wxString\& }{filename}} Returns time of last modification of given file. @@ -569,6 +569,24 @@ if (s) +\membersection{::wxGetColourFromUser}\label{wxgetcolourfromuser} + +\func{wxColour}{wxGetColourFromUser}{\param{wxWindow *}{parent}, \param{const wxColour\& }{colInit}} + +Shows the colour selection dialog and returns the colour selected by user or +invalid colour (use \helpref{wxColour::Ok}{wxcolourok} to test whether a colour +is valid) if the dialog was cancelled. + +\wxheading{Parameters} + +\docparam{parent}{The parent window for the colour selection dialog} + +\docparam{colInit}{If given, this will be the colour initially selected in the dialog.} + +\wxheading{Include files} + + + \membersection{::wxGetNumberFromUser}\label{wxgetnumberfromuser} \func{long}{wxGetNumberFromUser}{ @@ -1813,8 +1831,8 @@ See also \helpref{wxGetResource}{wxgetresource}, \helpref{wxConfigBase}{wxconfig Yields control to pending messages in the windowing system. This can be useful, for example, when a time-consuming process writes to a text window. Without an occasional -yield, the text window will not be updated properly, and (since Windows -multitasking is cooperative) other processes will not respond. +yield, the text window will not be updated properly, and on systems with +cooperative multitasking, such as Windows 3.1 other processes will not respond. Caution should be exercised, however, since yielding may allow the user to perform actions which are not compatible with the current task. @@ -1822,6 +1840,12 @@ Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see \helpref{::wxSafeYield}{wxsafeyield} for a better function. +Note that wxYield will not flush the message logs. This is intentional as +calling wxYield is usually done to quickly update the screen and popping up a +message box dialog may be undesirable. If you do with to flush the log +messages immediately (otherwise it will be done during the next idle loop +iteration), call \helpref{wxLog::FlushActive}{wxlogflushactive}. + \wxheading{Include files} or @@ -2486,6 +2510,11 @@ as the last system error code ({\it errno} or {\it ::GetLastError()} depending on the platform) and the corresponding error message. The second form of this function takes the error code explitly as the first argument. +\wxheading{See also} + +\helpref{wxSysErrorCode}{wxsyserrorcode}, +\helpref{wxSysErrorMsg}{wxsyserrormsg} + \membersection{::wxLogDebug}\label{wxlogdebug} \func{void}{wxLogDebug}{\param{const char*}{ formatString}, \param{...}{}} @@ -2541,6 +2570,31 @@ trace masks. \item wxTraceOleCalls: trace OLE method calls (Win32 only) \end{itemize} +\membersection{::wxSysErrorCode}\label{wxsyserrorcode} + +\func{unsigned long}{wxSysErrorCode}{\void} + +Returns the error code from the last system call. This function uses +{\tt errno} on Unix platforms and {\tt GetLastError} under Win32. + +\wxheading{See also} + +\helpref{wxSysErrorMsg}{wxsyserrormsg}, +\helpref{wxLogSysError}{wxlogsyserror} + +\membersection{::wxSysErrorMsg}\label{wxsyserrormsg} + +\func{const wxChar *}{wxSysErrorMsg}{\param{unsigned long }{errCode = 0}} + +Returns the error message corresponding to the given system error code. If +{\it errCode} is $0$ (default), the last error code (as returned by +\helpref{wxSysErrorCode}{wxsyserrorcode}) is used. + +\wxheading{See also} + +\helpref{wxSysErrorCode}{wxsyserrorcode}, +\helpref{wxLogSysError}{wxlogsyserror} + \section{Debugging macros and functions}\label{debugmacros} Useful macros and functins for error checking and defensive programming. ASSERTs are only