Panels R Us

Hi there. Quick Question. I've been working on a screen that displays sets
of form input in a series of panels that are displayed on a scrolling panel.
I use a boxSizer that vertically places them one oafter the other.

I've been asked to add a hide/show on each panel, so that users can click to
show a panel, and then click a button to hide that panel.

That's easy, except that it leaves gaps of blank space in the field, when in
fact the desired behavior is to compact and expand the other panels as each
panel is displayed/hidden.

Is there a best method practice for doing this? I tried setting a panel size
to 0,0, which works for hiding the panel, but when I show() it, it overlaps
the other panels, rather than pushing them down on the scrolling panel that
hosues them.

I could theoretically determine the verticla change as panels are
shown/hidde, then cycle through the children in a panel and modify their
height by that amount, but I'm hoping there's a better, lessh hacky way.

Thanks for any help.

Tim

Hi,
Spe (http://spe.pycs.net) has a bug in combination
with Python2.3 under Linux What's wrong with the
following code:

self.index = wxListCtrl(id=wxID_WXPANEL1LISTCTRL1,
name='listCtrl1',
              parent=self, pos=wxPoint(307, 2),
size=wxSize(417,
              291), style=wxLC_LIST,
validator=wxDefaultValidator)
self.index.InsertStringItem(0, 'blabla')
self.index.SetColumnWidth(-1,100)

So how you set the width of the list in this case. In
windows and Linux with Python2.2 this code runs fine.
Of course this just a fragment, because the source
code is too big.
Thanks,
Stani

···

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Hi,
In windows the contexthelp is triggered by pressing F1
automatically. How can I do the same in Linux.
Thanks,
Stani

http://spe.pycs.net

···

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com