I have a wxListbook set up and I want to set a static width for the left list in which the page titles are shown. Currently, when no pages are added, it does not have any width and when pages are added, the width becomes whatever the longest title spacing is.
Empty: 
Added pages: 
I have tried several things, but have had no luck.
First, I tried setting a column width, but didn’t see any difference:
listBook = new wxListbook( this, ID_LISTBOOK, wxDefaultPosition, wxDefaultSize, wxLB_LEFT );
wxListView* listBookListView1 = listBook->GetListView();
listBookListView1->SetColumnWidth(0,400); //tried 0,1,-1 for the first parameter
Then, I tried SetMinSize, but again, no difference:
listBook = new wxListbook( this, ID_LISTBOOK, wxDefaultPosition, wxDefaultSize, wxLB_LEFT );
listBook->SetMinSize(wxSize(400,500));
I also tried SetSize, but no difference:
listBook = new wxListbook( this, ID_LISTBOOK, wxDefaultPosition, wxDefaultSize, wxLB_LEFT );
listBook->SetSize(wxSize(200,200));
What would be the correct way to do this? Help appreciated.
Currently
wxListbookalways fits the list to its contents. Personally I really wonder why should this be a problem, in particular why would you want to have awxListbookwithout any pages and what could it be useful for. But, in principle, setting the minimal size of the list control should work and if you can change wxWidgets to do it like this, we’d gladly apply a patch doing it.However right now there is no way to do this, sorry.