git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4990
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include <wx/log.h>
// define this to 1 to use wxToolBarSimple instead of the native one
#include <wx/log.h>
// define this to 1 to use wxToolBarSimple instead of the native one
-#define USE_GENERIC_TBAR 1
+#define USE_GENERIC_TBAR 0
#if USE_GENERIC_TBAR
#if !wxUSE_TOOLBAR_SIMPLE
#if USE_GENERIC_TBAR
#if !wxUSE_TOOLBAR_SIMPLE
- #error "wxToolBarSimple is not compiled in, set wxUSE_TOOLBAR_SIMPLE "\
- "to 1 in setup.h and recompile the library."
+ #error wxToolBarSimple is not compiled in, set wxUSE_TOOLBAR_SIMPLE \
+ to 1 in setup.h and recompile the library.
#else
#include <wx/tbarsmpl.h>
#endif
#else
#include <wx/tbarsmpl.h>
#endif
wxBitmap toolBarBitmaps[8];
toolBarBitmaps[0] = wxBITMAP(new);
wxBitmap toolBarBitmaps[8];
toolBarBitmaps[0] = wxBITMAP(new);
+#if 0
+ toolBar->AddTool(wxID_NEW, toolBarBitmaps[0], wxNullBitmap, FALSE, -1, -1,
+ (wxObject *) NULL, "New file");
+ toolBar->Realize();
+ return;
+#endif
+
toolBarBitmaps[1] = wxBITMAP(open);
if ( !m_smallToolbar )
{
toolBarBitmaps[1] = wxBITMAP(open);
if ( !m_smallToolbar )
{
GetToolBar()->SetRows(m_horzToolbar ? m_rows : 10 / m_rows);
GetToolBar()->SetRows(m_horzToolbar ? m_rows : 10 / m_rows);
+ //RecreateToolbar(); -- this is unneeded
}
void MyFrame::OnToggleToolbarOrient(wxCommandEvent& WXUNUSED(event))
}
void MyFrame::OnToggleToolbarOrient(wxCommandEvent& WXUNUSED(event))