PB wrote: ↑Sat Mar 13, 2021 6:47 pm
I see. Sorry for having missed the actual issue.
No need to be sorry, I didn't mean it like this!
Actually I'm glad about any pointers that might help.
PB wrote: ↑Sat Mar 13, 2021 3:48 pm
I cannot really say it makes sense to me, in particular tabIndex vs pageIndex, but again, I am not familiar with wxAUI.
Actually your sample made me aware of this wxAuiTabCtrl class, and I took a look at the code what the purpose is.As far as I undestand it, the wxAuiNotebook can not manage a single window to support docked states. So if I am right, then this class is a helper which kind of mananges the different windows when it is in a docked state. The pageindex is a uniform index over all your pages currently held in the notebook. But when it is in a docked state, then you have multiple "notebooks" and the tabindex is the internal index of the a single docked window.
So for example, if you have 5 pages in your notebook, and two of them are docked above it, then you have pageindex 0..4 but one tabctrl with index 0..2 and another with index 0..1.
This gave me an idea how I can implement the missing functionality to restore the docked state as well. I have to try this today when I have more time.
If it work, as I expect it, to then I can contribute this to the wxWidget library, because IMO this should be actually part of the notebook class.