Problem changing panels dynamically in Splitter

The problem was that I was not destroying the window after I removed it from the Splitter.

It was in a different part of the code that also accessed the splitter.

If the removed panel is not Destroy()ed it seems to completely mess things from then on out...

Thanks for your help.
Rick

···

On Fri, 13 May 2005, Robin Dunn wrote:

Rick Price wrote:

Hi,

I'm having a problem changing panels dynamically in a wx.SplitterWindow.

I'm trying to create an application that switches out the panel on the RHS
of the splitter, depending on the value selected on the LHS of the
splitter. So the RHS is essentially an edit panel for the item on the LHS.

When I change the panel in the RHS of the SplitterWindow, all my controls
show up correctly, but they don't respond to the mouse etc.

Has the old panel been hidden or destroyed?

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org