I have converted my app from using constraints to using sizers. The app has a notebook within a notebook. The inner most notebook has panels and list controls and they all work fine. I have even used a sizer with the pages to create a border.
Now I am trying to place the inner notebook in a sizer so that there is a border around it to help separate it from the outer notebook. I think I'm doing things right. I create a box sizer and Add the notebook but the notebook does not expand to the full screen. It is just a little square in the top-left corner.
Do I need to use wxNotebookSizer ???
I've tried that but I can't get it to work either. I don't think the demo has a wxNotebookSizer example.
I have converted my app from using constraints to using sizers. The app has a notebook within a notebook. The inner most notebook has panels and list controls and they all work fine. I have even used a sizer with the pages to create a border.
Now I am trying to place the inner notebook in a sizer so that there is a border around it to help separate it from the outer notebook. I think I'm doing things right. I create a box sizer and Add the notebook but the notebook does not expand to the full screen. It is just a little square in the top-left corner.
Is the inner notebokk the child of the outer and what is passed to to the outer's AddPage? If so then the notbook will always size its page windows to fill the notebook's client area but your use of the sizer is probably confusing something, perhaps the notebook's default EVT_SIZE is not getting called...
The way to do what you are wanting is to put the inner notebook on a panel with a sizer to give it the border, and make that panel be the child of the outer notebook and what is passed to the outer notebook's AddPage.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!