> I'm trying to put a notebook that is in a sizer on a panel with a
> toolbar inside another sizer that is on the mainframe.
> The pages that I add to the notebook don't display, but if I just have
> the notebook in the main sizer it is ok.
> Demonstration code is below.
In ModulePanel.MakeSizer change
in order for the notebook to grow to fill remaining space. (The page is
actually there on the notebook, but it has no space to display itself in.)
Also you need to add the following to ModulePanel.OnTBClick after adding the
This gets around a refresh bug for newly added pages, it forces a resize
event on the children so then they ask the notebook how big they should be.