1
/////////////////////////////////////////////////////////////////////////////
3
// Purpose: SWIG interface for wxInfoBar
7
// Created: 2-March-2010
9
// Copyright: (c) 2010 by Total Control Software
10
// Licence: wxWindows license
11
/////////////////////////////////////////////////////////////////////////////
15
//---------------------------------------------------------------------------
18
MustHaveApp(wxInfoBar);
20
"An info bar is a transient window shown at top or bottom of its parent
21
window to display non-critical information to the user. It works
22
similarly to message bars in current web browsers.", "");
25
class wxInfoBar : public wxControl
28
%pythonAppend wxInfoBar "self._setOORInfo(self)";
29
%pythonAppend wxInfoBar() "";
31
wxInfoBar(wxWindow *parent, wxWindowID winid = wxID_ANY);
32
%RenameCtor(PreInfoBar, wxInfoBar());
34
bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY);
37
// show the info bar with the given message and optionally an icon
38
virtual void ShowMessage(const wxString& msg,
39
int flags = wxICON_INFORMATION);
42
virtual void Dismiss();
44
// add an extra button to the bar, near the message (replacing the default
45
// close button which is only shown if no extra buttons are used)
46
virtual void AddButton(wxWindowID btnid,
47
const wxString& label = wxEmptyString);
49
// remove a button previously added by AddButton()
50
virtual void RemoveButton(wxWindowID btnid);
53
// Generic version only. GTK doesn't have these??
54
void SetShowHideEffects(wxShowEffect showEffect, wxShowEffect hideEffect);
55
wxShowEffect GetShowEffect() const;
56
wxShowEffect GetHideEffect() const;
57
void SetEffectDuration(int duration);
58
int GetEffectDuration() const;
62
//---------------------------------------------------------------------------