Added wxInfoBar::AddButton().

Allow adding custom buttons to wxInfoBar and show this in the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-10-05 22:54:31 +00:00
parent df8c364bf4
commit 374ae80f2c
4 changed files with 34 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ public:
// show the info bar with the given message and optionally an icon
virtual void ShowMessage(const wxString& msg, int flags = wxICON_NONE) = 0;
// add an extra button to the bar, near the message
virtual void AddButton(wxWindowID btnid,
const wxString& label = wxString()) = 0;
private:
wxDECLARE_NO_COPY_CLASS(wxInfoBarBase);
};