FlexGridSizer not resizing custom control

Jeffrey Barish jeff_barish at earthlink.net
Thu Dec 7 13:09:31 PST 2006


I am trying to create a custom control that simply draws a stretchable
horizontal line.  When I put the control in a horizontal BoxSizer, the line
stretches when the window resizes to fill the space available, as it
should.  When I put the control in a growable column of a FlexGridSizer,
the line does not stretch.  I'm probably doing something wrong with the
FlexGridSizer, which I have never used before, but maybe I've done
something wrong in the custom control even though it works correctly with
the BoxSizer.  With the FlexGridSizer, the growable column grows as it
should, but the ClientSize for the custom control does not change.  The
ClientSize does change when I use the control with the BoxSizer.
-- 
Jeffrey Barish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testStretchLine.py
Type: text/x-java
Size: 1582 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061207/4774a60d/testStretchLine.java


More information about the wxpython-users mailing list