Added wxInfoBar::Dismiss().
Add a method to conveniently hide the info bar and update the parent layout. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -177,17 +177,26 @@ void wxInfoBar::ShowMessage(const wxString& msg, int flags)
|
||||
UpdateParent();
|
||||
}
|
||||
|
||||
void wxInfoBar::Dismiss()
|
||||
{
|
||||
if ( !UseNative() )
|
||||
{
|
||||
wxInfoBarGeneric::Dismiss();
|
||||
return;
|
||||
}
|
||||
|
||||
Hide();
|
||||
|
||||
UpdateParent();
|
||||
}
|
||||
|
||||
void wxInfoBar::GTKResponse(int btnid)
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, btnid);
|
||||
event.SetEventObject(this);
|
||||
|
||||
if ( !HandleWindowEvent(event) )
|
||||
{
|
||||
Hide();
|
||||
|
||||
UpdateParent();
|
||||
}
|
||||
Dismiss();
|
||||
}
|
||||
|
||||
GtkWidget *wxInfoBar::GTKAddButton(wxWindowID btnid, const wxString& label)
|
||||
|
||||
Reference in New Issue
Block a user