Make wxGridSizer ctors more consistent.

The old and confusing wxGridSizer(int cols, int vgap = 0, int hgap = 0) is removed and replaced with wxGridSizer(int cols, int vgap, int hgap).

New ctor overloads using wxSize for the gap parameter added.

Closes #11040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-08-02 00:48:58 +00:00
parent 4f671eebc9
commit 7e6edd2772
4 changed files with 55 additions and 16 deletions

View File

@@ -137,6 +137,12 @@ Changes in behaviour not resulting in compilation errors, please read this!
class versions of these functions as this won't work any more; please see the
documentation of wxLog for more information.
- Confusing wxGridSizer(int cols, int vgap = 0, int hgap = 0) ctor which was
easy to mistake for wxGridSizer(int rows, int cols) overload was removed, you
will need to specify both vertical and horizontal gap if you want to use this
overload or specify both rows and columns and the gap otherwise. Use of the
new constructors taking wxSize for the gap argument is preferred.
Changes in behaviour which may result in compilation errors
-----------------------------------------------------------