From: Robin Dunn Date: Sun, 25 Apr 2004 00:37:18 +0000 (+0000) Subject: Tweak the text about Sizer changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ffcb969ec62d8c62faff80626abfaebf4213beb1?ds=inline Tweak the text about Sizer changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/docs/CHANGES.txt b/wxPython/docs/CHANGES.txt index dcdf99190b..2b8008fbcb 100644 --- a/wxPython/docs/CHANGES.txt +++ b/wxPython/docs/CHANGES.txt @@ -5,13 +5,15 @@ Recent Changes for wxPython ------- wx.ADJUST_MINSIZE is now the default behaviour for window items in -sizers. This means that the item's GetAdjustedBestSize will be called -when calculating layout and the return value from that will be used -for the minimum size. Added wx.FIXED_MINSIZE flag for when you would -like the old behavior but you should only need it when your desired -size is smaller than the item's GetBestSize. When a window is added -to a sizer it's initial size, if any, is set as the window's minimal -size using SetSizeHints if there isn't already a minimal size. +sizers. This means that the item's GetMinSize and/or GetBestSize will +be called when calculating layout and the return value from that will +be used for the minimum size. The wx.FIXED_MINSIZE flag was added +that will cause the sizer to *not* call window methods to determine +the new best size, instead the minsize that the window had when added +to the sizer (or the size the window was created with) will always be +used. When a window is added to a sizer it's initial size, if any, is +set as the window's minimal size using SetSizeHints if there isn't +already a minimal size. Added some convenience methods to wx.Bitmap: SetSize, GetSize, and wx.EmptyBitmap can be called with a wx.Size (or a 2-element sequence) diff --git a/wxPython/docs/MigrationGuide.txt b/wxPython/docs/MigrationGuide.txt index 3828d4dc72..1aeff04769 100644 --- a/wxPython/docs/MigrationGuide.txt +++ b/wxPython/docs/MigrationGuide.txt @@ -452,13 +452,14 @@ wrappers will figure out what to do. **[Changed in 2.5.1.6]** wx.ADJUST_MINSIZE is now the default behaviour for window items in sizers. This means that the item's -GetAdjustedBestSize will be called when calculating layout and the -return value from that will be used for the minimum size. Added -wx.FIXED_MINSIZE flag for when you would like the old behavior but you -should only need it when your desired size is smaller than the item's -GetBestSize. When a window is added to a sizer it's initial size, if -any, is set as the window's minimal size using SetSizeHints if there -isn't already a minimal size. +GetMinSize and/or GetBestSize will be called when calculating layout +and the return value from that will be used for the minimum size. The +wx.FIXED_MINSIZE flag was added that will cause the sizer to *not* +call window methods to determine the new best size, instead the +minsize that the window had when added to the sizer (or the size the +window was created with) will always be used. When a window is added +to a sizer it's initial size, if any, is set as the window's minimal +size using SetSizeHints if there isn't already a minimal size. PlatformInfo