diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 47854b9fb9..f6bc9457e8 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -256,7 +256,6 @@ void MyFrame::RecreateToolbar() style |= m_horzToolbar ? wxTB_HORIZONTAL : wxTB_VERTICAL; toolBar = CreateToolBar(style, ID_TOOLBAR); - //toolBar->SetMargins( 4, 4 ); // Set up toolbar wxBitmap toolBarBitmaps[8]; @@ -487,6 +486,8 @@ void MyFrame::OnToggleAnotherToolbar(wxCommandEvent& WXUNUSED(event)) wxDefaultPosition, wxDefaultSize, style); + m_tbar->SetMargins(4, 4); + m_tbar->AddRadioTool(wxID_NEW, _T("First"), wxBITMAP(new)); m_tbar->AddRadioTool(wxID_OPEN, _T("Second"), wxBITMAP(open)); m_tbar->AddRadioTool(wxID_SAVE, _T("Third"), wxBITMAP(save));