]> git.saurik.com Git - wxWidgets.git/commitdiff
uncomment SetMargins() call which works now (the person who commented it out probably...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Sep 2002 13:40:55 +0000 (13:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Sep 2002 13:40:55 +0000 (13:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/toolbar/toolbar.cpp

index 47854b9fb9c18fd997ba33bad16be2c5eb9c117d..f6bc9457e8805c9b3e92dd56a3f337528f5c7498 100644 (file)
@@ -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));