Add wxInfoBar::RemoveButton() method.
Also change the GTK implementation to use a separate wxInfoBarGTKImpl to store its data, this object won't be even allocated if a generic implementation is used under GTK. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -531,6 +531,12 @@ MyFrame::MyFrame(const wxString& title)
|
||||
// or it can also be customized
|
||||
m_infoBarAdvanced = new wxInfoBar(this);
|
||||
m_infoBarAdvanced->AddButton(wxID_UNDO);
|
||||
m_infoBarAdvanced->AddButton(wxID_REDO);
|
||||
|
||||
// adding and removing a button immediately doesn't make sense here, of
|
||||
// course, it's done just to show that it is possible
|
||||
m_infoBarAdvanced->AddButton(wxID_EXIT);
|
||||
m_infoBarAdvanced->RemoveButton(wxID_EXIT);
|
||||
|
||||
m_infoBarAdvanced->SetOwnBackgroundColour(0xc8ffff);
|
||||
m_infoBarAdvanced->SetShowHideEffects(wxSHOW_EFFECT_EXPAND,
|
||||
|
Reference in New Issue
Block a user