]> git.saurik.com Git - wxWidgets.git/commitdiff
document that wxDialog::ShowModal() creates its own event loop
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 1 Mar 2009 21:01:39 +0000 (21:01 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 1 Mar 2009 21:01:39 +0000 (21:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dialog.h
interface/wx/evtloop.h

index 07f15907c43f33e1188175dbbe5501db0bf33a6f..e53af26867d4c1815cef8e9253fdbc1f14a3a7ff 100644 (file)
@@ -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()
index 41e4316355a25489bf18a42fe218cdf2f3982f9c..885ce458622afa68d18777bb1fb1fabb0471cd6a 100644 (file)
@@ -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).