diff --git a/interface/wx/dialog.h b/interface/wx/dialog.h index 07f15907c4..e53af26867 100644 --- a/interface/wx/dialog.h +++ b/interface/wx/dialog.h @@ -583,6 +583,10 @@ public: modeless dialog modal. However ShowModal() can't be called twice without intervening EndModal() calls. + Note that this function creates a temporary event loop which takes + precedence over the application's main event loop (see wxEventLoopBase) + and which is destroyed when the dialog is dismissed. + @return The value set with SetReturnCode(). @see EndModal(), GetReturnCode(), SetReturnCode() diff --git a/interface/wx/evtloop.h b/interface/wx/evtloop.h index 41e4316355..885ce45862 100644 --- a/interface/wx/evtloop.h +++ b/interface/wx/evtloop.h @@ -18,6 +18,7 @@ An object of this class is created by wxAppTraits::CreateEventLoop() and used by wxApp to run the main application event loop. + Temporary event loops are usually created by wxDialog::ShowModal(). You can create your own event loop if you need, provided that you restore the main event loop once yours is destroyed (see wxEventLoopActivator).