Sizer help (min sizes, proportionality, and window resizing)

Vadim Zeitlin vadim at wxwidgets.org
Wed May 7 07:59:27 PDT 2008


On Wed, 7 May 2008 10:15:29 -0400 Harvey Chapman <hchapman-wx-users at 3gfp.com> wrote:

HC> How can I have both proportionality and minimum sizes? Do I have to  
HC> always set the minimum sizes myself?

 Usually I'd advise you to set the minimal size for the window containing
this sizer. The sizer elements do set their minimal sizes automatically but
if you resize the window containing them below their sum, they have no
choice but to behave as you described.

 However if you really want the labels to be cut off when the window is too
small (rather than preventing it from becoming so small), then you do
indeed need to set the minimal size (say 5 or 10 pixels) for the spacers as
they don't have any minimal size by default.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/



More information about the wx-users mailing list