By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,078 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,078 IT Pros & Developers. It's quick & easy.

Resizing VListBox on parent (wxPython)

P: n/a
I hava a hierarhical sizer layout in which there's a panel in the upper
part of a window with some buttons, and another panel with wxVListBox
that's meant to occupy all the remaining space in the window. Both
panels are put inside a vertical BoxSizer, and the VListBox in its panel
is also in BoxSizer.

The hierarchy is like this:

- window, vertical BoxSizer
- panel, horizontal BoxSizer
- some buttons
- panel, vertical BoxSizer
- a single VListBox

(the VListBox is alone in its panel for "future compatibility" - I plan
to add more controls to the panel)

I want the lower panel and the VListBox to automatically resize and fill
all the remaining space in the window. I can get this to work in the
horizontal direction by default, but not in vertical. When I set the
vertical size of VListBox to -1, it only displays one line; I can set it
to a fixed vertical size, but I really need it to adapt its size to that
of the window (something like "Center" layout option in Java BorderLayout).

(The items in VListBox are generated at program runtime, and are not
available during window controls creation stage)

Can somebody explain why is this happening and how to do what I want? I
have almost no experience in wxWindows.
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ivan Voras wrote:
- panel, vertical BoxSizer
- a single VListBox


Forgot to mention it - I'm using wx.GROW flag on both of them.
Jul 19 '05 #2

P: n/a
Solved - I didn't know the importance of "proportion" parametar.
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.