On Sep 27, 2010, at 11:31 PM, Bronwyn Woods wrote:

> I have a form that contains a PageFrame.  A page of the PageFrame contains a
> Panel.  The Panel contains a ListBox.  I would like the ListBox to expand to
> fill the vertical space, but when I add 'proportion=1', it expands too much
> and causes a vertical scroll bar to appear on the form.  Any idea what I'm
> doing wrong?


        Actually, the code you posted contains a dListControl, not a dListBox. 
If you change the code to use dListBox, the sizing works as expected.

        dListControl is based on the wx.ListCtrl class, which is a very 
powerful but complex class, and not always very well behaved when it comes to 
sizers. It doesn't seem to report its size correctly, and doesn't allow itself 
to shrink back down when the form becomes smaller.



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to