diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 145803ec4b..2a643ae047 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -484,6 +484,7 @@ public: // these methods allow to access tools by their index in the toolbar size_t GetToolsCount() const { return m_tools.GetCount(); } + wxToolBarToolBase *GetToolByPos(int pos) { return m_tools[pos]; } const wxToolBarToolBase *GetToolByPos(int pos) const { return m_tools[pos]; } #if WXWIN_COMPATIBILITY_2_8 diff --git a/interface/wx/toolbar.h b/interface/wx/toolbar.h index bcb3ff77ce..da12c697a0 100644 --- a/interface/wx/toolbar.h +++ b/interface/wx/toolbar.h @@ -578,6 +578,8 @@ public: @see GetToolsCount() */ + wxToolBarToolBase *GetToolByPos(int pos); + const wxToolBarToolBase *GetToolByPos(int pos) const; /**