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
This commit is contained in:
parent
df17b887ee
commit
69c14ebe01
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user