// Name: wx/infobar.h
// Purpose: interface of wxInfoBar
// Author: Vadim Zeitlin
-// RCS-ID: $Id$
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
void MyFrame::SomeMethod()
{
- m_infoBar->ShowMessage("Something happend", wxICON_INFORMATION);
+ m_infoBar->ShowMessage("Something happened", wxICON_INFORMATION);
}
@endcode
native implementation requires a recent -- as of this writing -- GTK+ 2.18
version.
- @library{wxadv}
+ @library{wxcore}
@category{miscwnd}
@see wxStatusBar, wxMessageDialog
The id of the info bar window, usually unused as currently no
events are generated by this class.
*/
- wxInfoBar(wxWindow *parent, wxWindowID winid = wxID_ANY);
+ bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY);
/**
Add a button to be shown in the info bar.
This method hides the window and lays out the parent window to account
for its disappearance (unlike a simple Hide()).
*/
- void Dismiss();
+ virtual void Dismiss();
/**
Remove a button previously added by AddButton().