I'm using C::B from apt.jenslody.de (version SVN 9660). Using wxSmith, I have wxAuiNotebook inside wxBoxSizer inside wxDialog. I have following problems:
1. I can't make the wxAuiNotebook control to automatically resize to accomodate it's contents (big enough for any page it contains). When left at it's own, the control stays very small. I have to set 'Minimal width / heigh', and enable 'Fixed min size'. Is this bug, or a known limitation of wxAuiNotebook?
2. When I set 'Minimal width / height', and enable 'Fixed min size', the wxAuiNotebook control in wxSmith looks allright - it has the size I specified. But when I compile and run the code generated by wxSmith, the wxAuiNotebook is extremely small, practically invisible. Relevant code like this:
AuiNotebook1 = new wxAuiNotebook(this, ID_AUINOTEBOOK1, wxDefaultPosition, wxSize(0,0), wxAUI_NB_DEFAULT_STYLE);
AuiNotebook1->SetMinSize(wxSize(1000,500));
top_sizer->Add(AuiNotebook1, 4, wxALL|wxEXPAND|wxFIXED_MINSIZE|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
When I disable 'Fixed min size', the wxAuiNotebook control in wxSmith is small, but after compiling and running in reality it has the desired size.
AuiNotebook1 = new wxAuiNotebook(this, ID_AUINOTEBOOK1, wxDefaultPosition, wxSize(0,0), wxAUI_NB_DEFAULT_STYLE);
AuiNotebook1->SetMinSize(wxSize(1000,500));
top_sizer->Add(AuiNotebook1, 4, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
Is this a bug in wxSmith? (see
http://www.pnelsoncomposer.com/FAQs/wxWidgetsFAQ.html#Q4G for example) Or maybe a difference between wxWidgets version used to build C::B and wxWidgets version used for my project (3.0.0)?