]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/sizer.h
paint the space remaining after the columns too in wxListHeaderWindow::OnPaint()...
[wxWidgets.git] / interface / wx / sizer.h
index 7140ec3148530d745df88ced04f8d2b9a9d4a847..0bd0c7cf0bbda0126b964ba85b6785b4b4444048 100644 (file)
@@ -333,7 +333,7 @@ public:
     you can now write
 
     @code
-    sizer->Add(ctrl, wxSizerFlags().Expand().Border(10));
+    sizer->Add(ctrl, wxSizerFlags().Expand().Border(wxALL, 10));
     @endcode
 
     This is more readable and also allows you to create wxSizerFlags objects which
@@ -341,7 +341,7 @@ public:
 
     @code
     wxSizerFlags flagsExpand(1);
-        flagsExpand.Expand().Border(10);
+        flagsExpand.Expand().Border(wxALL, 10);
 
         sizer->Add(ctrl1, flagsExpand);
         sizer->Add(ctrl2, flagsExpand);
@@ -571,17 +571,24 @@ public:
     /**
         Specifies that column @a idx (starting from zero) should be grown if
         there is extra space available to the sizer.
-        The @a proportion parameter has the same meaning as the stretch factor for
-        the sizers() except that if all proportions are 0,
-        then all columns are resized equally (instead of not being resized at all).
+
+        The @a proportion parameter has the same meaning as the stretch factor
+        for the sizers() except that if all proportions are 0, then all columns
+        are resized equally (instead of not being resized at all).
+
+        Notice that the row must not be already growable, if you need to change
+        the proportion you must call RemoveGrowableCol() first and then make it
+        growable (with a different proportion) again. You can use IsColGrowable()
+        to check whether a column is already growable.
     */
     void AddGrowableCol(size_t idx, int proportion = 0);
 
     /**
         Specifies that row idx (starting from zero) should be grown if there
         is extra space available to the sizer.
-        See AddGrowableCol() for the description
-        of @a proportion parameter.
+
+        This is identical to AddGrowableCol() except that it works with rows
+        and not columns.
     */
     void AddGrowableRow(size_t idx, int proportion = 0);
 
@@ -606,6 +613,20 @@ public:
     */
     int GetNonFlexibleGrowMode() const;
 
+    /**
+        Returns @true if column @a idx is growable.
+
+        @since 2.9.0
+    */
+    bool IsColGrowable(size_t idx);
+
+    /**
+        Returns @true if row @a idx is growable.
+
+        @since 2.9.0
+    */
+    bool IsRowGrowable(size_t idx);
+
     /**
         Specifies that column idx is no longer growable.
     */
@@ -1149,7 +1170,7 @@ public:
     bool Hide(size_t index);
 
     /**
-        Insert a child into the sizer before any existing item at
+        Insert a child into the sizer before any existing item at @a index.
 
         See Add() for the meaning of the other parameters.
     */
@@ -1157,7 +1178,7 @@ public:
                         const wxSizerFlags& flags);
 
     /**
-        Insert a child into the sizer before any existing item at
+        Insert a child into the sizer before any existing item at @a index.
 
         See Add() for the meaning of the other parameters.
     */
@@ -1168,7 +1189,7 @@ public:
                         wxObject* userData = NULL);
 
     /**
-        Insert a child into the sizer before any existing item at
+        Insert a child into the sizer before any existing item at @a index.
 
         See Add() for the meaning of the other parameters.
     */
@@ -1176,7 +1197,7 @@ public:
                         const wxSizerFlags& flags);
 
     /**
-        Insert a child into the sizer before any existing item at
+        Insert a child into the sizer before any existing item at @a index.
 
         See Add() for the meaning of the other parameters.
     */
@@ -1187,7 +1208,7 @@ public:
                         wxObject* userData = NULL);
 
     /**
-        Insert a child into the sizer before any existing item at
+        Insert a child into the sizer before any existing item at @a index.
 
         See Add() for the meaning of the other parameters.
     */