From: Vadim Zeitlin Date: Tue, 10 Sep 2002 13:40:55 +0000 (+0000) Subject: uncomment SetMargins() call which works now (the person who commented it out probably... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69c14ebe016ee8be2dd14defc4d37a136d0c3450?ds=inline uncomment SetMargins() call which works now (the person who commented it out probably did know about the bug, but chose to change the sample instead of fixing the code...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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));