I am attempting to add a toolbar to a window. The toolbar gets added, but for some reason the tools are not showing. This only seems to happen on Windows. I am using XPM files for the toolbar button icons. I used the code below to set-up the toolbar. You can see from the screenshot that not even the text is showing.
Code: Select all
auto toolbar = this->CreateToolBar(wxTB_FLAT | wxTB_HORIZONTAL | wxTB_TEXT);
toolbar->SetToolBitmapSize(wxSize(16, 16));
toolbar->AddTool(wxID_ANY, "New Game", wxBitmap(new16), "Start a new game.");