X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dea482c985668168de4e9afeadc0cf04d6131bc5..48889bca6f8b2504f78c0f47b32f5e95c64d915d:/samples/toolbar/toolbar.cpp diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index c1c95e469b..06f3ddd559 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -424,6 +424,8 @@ void MyFrame::PopulateToolbar(wxToolBarBase* toolBar) } } + // this call is actually unnecessary as the toolbar will adjust its tools + // size to fit the biggest icon used anyhow but it doesn't hurt neither toolBar->SetToolBitmapSize(wxSize(w, h)); toolBar->AddTool(wxID_NEW, _T("New"), @@ -956,7 +958,7 @@ void MyFrame::OnToolbarBgCol(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnToolbarCustomBitmap(wxCommandEvent& WXUNUSED(event)) { - m_pathBmp = wxFileSelector(_T("Custom bitmap path")); + m_pathBmp = wxLoadFileSelector("custom bitmap", ""); RecreateToolbar(); }