Hi Mark,
Is is possible to swap two controls in the same slot? Here's what I'd
like to do:I have an application where the user can display one of several mailing
addresses. Normally the user is viewing the data read-only. The first
line of the address is displayed in a ComboBox (or Choice) widget. The
user can select which address they want to view using this widget. The
remaining address widgets are read-only.When the user wants to edit the address, I want to change the ComboBox
to a TextCtrl to allow the use to edit it. I would also enable editing
in the other address widgets.
This is pretty similar to what a wx.Notebook does. Simply add both
your controls to your sizer, and use:
holdingPanel.Freeze()
sizer.Hide(controlToHide) # for the control you want to hide
sizer.Show(controlToShow) # for the control you want to show
sizer.Layout()
holdingPanel.Thaw()
I have used it on all the owner-drawn implementation of wx.Notebook I have done.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
ยทยทยท
On Dec 14, 2007 2:56 PM, Mark Erbaugh wrote: