NotebookCtrl Updates ;-)

Hello Tacao & NG,

2) I have to destroy the tab (only the tab, not the panel)
associated to this panel, in order to let the OnPaint() event
working correctly;

Actually you will not 'destroy' the tab, but remove the page. 8^)
wx.Notebook.RemovePage() does that.

wx.Notebook.RemovePage() does not destroy the page, ok, but this method is
not implemented in NotebookCtrl. There is no need to do it, I suppose.

something.Reparent(newParent)
old_sizer.Detach(something) # oldParent's sizer
old_sizer.Layout()

Ok, now it's clearer, thanks for that. My only concern, now, is:

- page is reparented to the new frame and saves its previous
notebookctrl parent as an attribute. The new frame has an
onClose method which checks if the old notebook exists. If
it exists, insert the page back to the notebook, otherwise
close the frame.

If the old NotebookCtrl exists, where should I re-insert the page after the
frame is closed? At the end? In the old position? This last one will not be
very coherent, because in the meanwhile you could have
moved/deleted/inserted/added pages, so the "old" position is no more a
valid one...

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453