If you really do remove a page from a notebook, then the indexing
that results is correct: what was the 4th page now really is the
3rd page, so the index is correct. So, if you want to keep track
of previous orders, you have to do it yourself. You can use a list
or a dictionary to keep a record of the order of the pages, and then
appeal to that (and not GetPage) to work with the original order.
Che
ยทยทยท
On Mon, Dec 7, 2009 at 5:02 AM, ram <ramp99@gmail.com> wrote:
Hi All,
My notebook is having 5 panels.
I want to hide panel3 without changing the page numbers
(self.notebook.GetSelection) when I hide/remove that page.
When I use self.panel3.RemovePage(3). Next(4) panel is going to get
the GetSelection() as 3.
My notebook is having 5 panels.
I want to hide panel3 without changing the page numbers
(self.notebook.GetSelection) when I hide/remove that page.
When I use self.panel3.RemovePage(3). Next(4) panel is going to get
the GetSelection() as 3.
But I want to retain previous panel number.
Any body has any solution?
Please help me..
As an alternative you might want to consider using page.Hide/Show. I use this with agw.aui or agw.flatnotebook, personally I don't like having pages disappear on me, so I prefer Andrea's approach of disable/enable the tab when one uses hide/show. The users sees a no parking sign when page is hidden.