General question about dynamic UIs

Say that I have a vertical splitter window. On the left, I have tree

control

that shows a tree of choices. On the right, I have a panel that shows

static

text and text controls related to the object selected in the tree control

on

the left. Every time the user clicks on an option in the tree control,
should I basically throw away the previous property panel and create a new

one to take its place? Does anyone have a good sample I could look at

that

does something like this? I looked on the Wiki recipes and in the demo,

but

I didn't see anything like what I'm asking for.

This is a common request, it would make sense to create something once and
for all for wx.lib. I could contribute something that's somewhat generic,
but I'm sure it wouldn't be generic enough (e.g., I don't need to change the
tree once created -- no need to expand/collapse branches, or add panels, or
rename them etc -- probably things that should be added for a generic
"TreePanels" widget). Who else could contribute this kind of split panel?

Oliver