X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2aa59ef43663cefcc4e76ab4f7ebc49ed0e4bb9e..61714c237d73406dc863573f79f9007e60d94aba:/docs/latex/wx/app.tex diff --git a/docs/latex/wx/app.tex b/docs/latex/wx/app.tex index d501e696b6..55249bf1cd 100644 --- a/docs/latex/wx/app.tex +++ b/docs/latex/wx/app.tex @@ -157,14 +157,12 @@ different visuals, FALSE otherwise. \helpref{SetUseBestVisual}{wxappsetusebestvisual} - -\membersection{wxApp::GetVendorName}\label{wxappvendorappname} +\membersection{wxApp::GetVendorName}\label{wxappgetvendorname} \constfunc{wxString}{GetVendorName}{\void} Returns the application's vendor name. - \membersection{wxApp::ExitMainLoop}\label{wxappexitmainloop} \func{void}{ExitMainLoop}{\void} @@ -235,6 +233,23 @@ If you use this member, you can selectively consume keypress events by calling\r \helpref{wxKeyEvent}{wxkeyevent}, \helpref{wxWindow::OnChar}{wxwindowonchar},\rtfsp \helpref{wxWindow::OnCharHook}{wxwindowoncharhook}, \helpref{wxDialog::OnCharHook}{wxdialogoncharhook} +\membersection{wxApp::OnFatalException}\label{wxapponfatalexception} + +\func{void}{OnFatalException}{\void} + +This function may be called if something fatal happens: an unhandled +exception under Win32 or a a fatal signal under Unix, for example. However, +this will not happen by default: you have to explicitly call +\helpref{wxHandleFatalExceptions}{wxhandlefatalexceptions} to enable this. + +Generally speaking, this function should only show a message to the user and +return. You may attempt to save unsaved data but this is not guaranteed to +work and, in fact, probably won't. + +\wxheading{See also} + +\helpref{wxHandleFatalExcetions}{wxhandlefatalexceptions} + \membersection{wxApp::OnIdle}\label{wxapponidle} \func{void}{OnIdle}{\param{wxIdleEvent\& }{event}} @@ -248,7 +263,7 @@ wxWindows' strategy for OnIdle processing is as follows. After pending user inte application have all been processed, wxWindows sends an OnIdle event to the application object. wxApp::OnIdle itself sends an OnIdle event to each application window, allowing windows to do idle processing such as updating their appearance. If either wxApp::OnIdle or a window OnIdle function requested more time, by -caling \helpref{wxIdleEvent::ReqestMore}{wxidleeventrequestmore}, wxWindows will send another OnIdle +caling \helpref{wxIdleEvent::RequestMore}{wxidleeventrequestmore}, wxWindows will send another OnIdle event to the application object. This will occur in a loop until either a user event is found to be pending, or OnIdle requests no more time. Then all pending user events are processed until the system goes idle again, when OnIdle is called, and so on. @@ -468,7 +483,6 @@ wxWindows. \helpref{wxApp::GetVendorName}{wxappgetvendorname} - \membersection{wxApp::GetStdIcon}\label{wxappgetstdicon} \func{virtual wxIcon}{GetStdIcon}{\param{int }{which}} const @@ -479,7 +493,9 @@ can be overridden by the user to change the default icons. \wxheading{Parameters} -\docparam{which}{One of the wxICON\_XXX defines and chooses which icon to return.} +\docparam{which}{One of the wxICON\_XXX specifies which icon to return.} + +See \helpref{wxMessageBox}{wxmessagebox} for a list of icon identifiers. \membersection{wxApp::SetUseBestVisual}\label{wxappsetusebestvisual} @@ -490,7 +506,7 @@ on systems that support several visual on the same display. This is typically th case under Solaris and IRIX, where the default visual is only 8-bit whereas certain appications are supposed to run in TrueColour mode. -Note that this function has to be called in the constructor of the {\tt wxApp} +Note that this function has to be called in the constructor of the {\tt wxApp} instance and won't have any effect when called later on. This function currently only has effect under GTK. @@ -498,3 +514,4 @@ This function currently only has effect under GTK. \wxheading{Parameters} \docparam{flag}{If TRUE, the app will use the best visual.} +