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