I'd a problem in management of toolbar size.
I updated wxWidgets version from 2.9.3 to 3.1.3, compiling in UNICODE_UTF8 mode, both on linux and windows; my application code create a toolbar and, on windows system, I'm not able to view correctly the bar.. I had to change the 'wxDefaultSize' to a specific 'wxSize(x, y)'.. and, in this case, I had the relative problem that it doesn't expand if I select full screen.
Code: Select all
int toolbarStyle = wxTB_TEXT | wxTB_NODIVIDER | wxTB_FLAT | wxTB_HORIZONTAL | wxSIMPLE_BORDER;
int sizerStyle = wxVERTICAL;
wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
wxToolBar *toolbar = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, toolbarStyle);
toolbar->SetToolBitmapSize(wxSize(32,32));
SetSizer(new wxBoxSizer(sizerStyle));
SetAutoLayout(true);
GetSizer()->Add(toolbar, 0, wxEXPAND);
Code: Select all
wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(1000, 700), wxTAB_TRAVERSAL);