AH! Use *SIZER*'s hide and show. Neato.
Thanks!!!!
Tim
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, September 29, 2003 2:08 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Panels R Us
Tim Royal wrote:
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?
Yes, use sizer.Hide(panel) and sizer.Show(panel)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
_________________________________________________
Scanned on 29 Sep 2003 22:11:22
Scanning by http://erado.com