X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e76c0b5fc59b06273ebbe9c1d9b2646befd0acd0..aa8e9a36c47673613f080d7578e771fe62261ef1:/include/wx/tbarbase.h diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 1ba060a436..dfa4dcb40d 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -178,7 +178,7 @@ public: void SetNormalBitmap(const wxBitmap& bmp) { m_bmpNormal = bmp; } void SetDisabledBitmap(const wxBitmap& bmp) { m_bmpDisabled = bmp; } - void SetLabel(const wxString& label) { m_label = label; } + virtual void SetLabel(const wxString& label) { m_label = label; } void SetClientData(wxObject *clientData) { @@ -329,6 +329,9 @@ public: // NB: the control should have toolbar as its parent virtual wxToolBarToolBase *AddControl(wxControl *control); virtual wxToolBarToolBase *InsertControl(size_t pos, wxControl *control); + + // get the control with the given id or return NULL + virtual wxControl *FindControl( int id ); // add a separator to the toolbar virtual wxToolBarToolBase *AddSeparator();