]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/app.h
fix syntax error
[wxWidgets.git] / interface / wx / app.h
index 60f7ff619eea7d5336151baa5c5cd3b5c70aef94..595fe78aab983362964ae685b9384381971fc947 100644 (file)
@@ -107,7 +107,7 @@ public:
 
     /**
         Returns the one and only global application object.
 
     /**
         Returns the one and only global application object.
-        Usually ::wxTheApp is usead instead.
+        Usually wxTheApp is used instead.
 
         @see SetInstance()
     */
 
         @see SetInstance()
     */
@@ -531,9 +531,10 @@ public:
     /**
         Returns a pointer to the top window.
 
     /**
         Returns a pointer to the top window.
 
-        @remarks If the top window hasn't been set using SetTopWindow(),
-                 this function will find the first top-level window
-                 (frame or dialog) and return that.
+        @remarks
+            If the top window hasn't been set using SetTopWindow(), this function
+            will find the first top-level window (frame or dialog or instance of
+            wxTopLevelWindow) from the internal top level window list and return that.
 
         @see SetTopWindow()
     */
 
         @see SetTopWindow()
     */
@@ -624,9 +625,13 @@ public:
         Sets the 'top' window. You can call this from within OnInit() to let wxWidgets
         know which is the main window. You don't have to set the top window;
         it is only a convenience so that (for example) certain dialogs without parents
         Sets the 'top' window. You can call this from within OnInit() to let wxWidgets
         know which is the main window. You don't have to set the top window;
         it is only a convenience so that (for example) certain dialogs without parents
-        can use a specific window as the top window. If no top window is specified by the
-        application, wxWidgets just uses the first frame or dialog in its top-level window
-        list, when it needs to use the top window.
+        can use a specific window as the top window.
+
+        If no top window is specified by the application, wxWidgets just uses the
+        first frame or dialog (or better, any wxTopLevelWindow) in its top-level
+        window list, when it needs to use the top window.
+        If you previously called SetTopWindow() and now you need to restore this
+        automatic behaviour you can call @code wxApp::SetTopWindow(NULL) @endcode.
 
         @param window
             The new top window.
 
         @param window
             The new top window.