]> git.saurik.com Git - wxWidgets.git/commitdiff
fix docs for wxWindow::Layout (fixes #4297)
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 22 Nov 2008 12:29:09 +0000 (12:29 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 22 Nov 2008 12:29:09 +0000 (12:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/panel.h
interface/wx/toplevel.h
interface/wx/window.h

index 59acc6534a106a5606054504f2baf696b760008f..f836f6c6a1f35557f7c1fa843504ee3c72c88d30 100644 (file)
@@ -96,6 +96,12 @@ public:
     */
     virtual void InitDialog();
 
+    /**
+        See wxWindow::SetAutoLayout(): when auto layout is on, this function gets
+        called automatically when the window is resized.
+    */
+    virtual bool Layout();
+
     /**
         The default handler for wxEVT_SYS_COLOUR_CHANGED.
 
index 2c30dada11b2e335c6a8f5ba93e948e32d851400..0806c2f21fed280f453ac0127ae9a18584b438c1 100644 (file)
@@ -176,6 +176,12 @@ public:
     */
     bool IsUsingNativeDecorations() const;
 
+    /**
+        See wxWindow::SetAutoLayout(): when auto layout is on, this function gets
+        called automatically when the window is resized.
+    */
+    virtual bool Layout();
+
     /**
         Maximizes or restores the window.
 
index 566bd781b2708c4090bc6d4c44f884ceb9172a5f..b20b43dcdefdf90ab3f3103792dda43545df064e 100644 (file)
@@ -1503,8 +1503,10 @@ public:
         Invokes the constraint-based layout algorithm or the sizer-based algorithm
         for this window.
 
-        See SetAutoLayout(): when auto layout is on, this function gets called automatically
-        when the window is resized.
+        This function does not get called automatically when the window is resized
+        because lots of windows deriving from wxWindow does not need this functionality.
+        If you want to have Layout() called automatically, you should derive
+        from wxPanel (see wxPanel::Layout).
 
         @see @ref overview_windowsizing
     */
@@ -1981,8 +1983,9 @@ public:
         updated when its size changes.
 
         @param autoLayout
-            Set this to @true if you wish the Layout function to be
-            called automatically when the window is resized.
+            Set this to @true if you wish the Layout() function to be
+            called automatically when the window is resized
+            (really happens only if you derive from wxPanel or wxTopLevelWindow).
 
         @see SetConstraints()
     */