I build a GUI with wxFormBuilder and I use a lot of sizers.
Attached you find a screenshot of my application and a screenshot of the wxFormBuilder Project.
Now my problem: the left bar is too wide in my eyes. And I want to have it smaller.
I tried a lot of things but I didn't get to reach my desired target. Atm I have a flexGridSizer to order the components (StaticBoxSizers with names).
In my opinion it is the wxListCtrl which forces the big width of the left bar. It has 3 columens and the following code shows how I create them.
So my question: how can I make this left bar smaller?
Code: Select all
m_axesList->ClearAll();
m_axesList->SetSingleStyle(wxLC_REPORT);
m_axesList->InsertColumn(0,"Name");
m_axesList->InsertColumn(1,"Position");
m_axesList->InsertColumn(2,"Unit");
m_axesList->SetColumnWidth(0, wxLIST_AUTOSIZE_USEHEADER);
m_axesList->SetColumnWidth(1, wxLIST_AUTOSIZE_USEHEADER);
m_axesList->SetColumnWidth(2, wxLIST_AUTOSIZE_USEHEADER);