// TODO: Virtualize this class so other book controls can be derived in Python
+MustHaveApp(wxBookCtrl);
+
// Common base class for wxList/Tree/Notebook
class wxBookCtrl : public wxControl
{
// cycle thru the pages
void AdvanceSelection(bool forward = True);
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};
+MustHaveApp(wxNotebook);
+
class wxNotebook : public wxBookCtrl {
public:
%pythonAppend wxNotebook "self._setOORInfo(self)"
%pythonAppend wxNotebook() ""
wxNotebook(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
%name(PreNotebook)wxNotebook();
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
DocDeclAStr(
virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const,
"HitTest(Point pt) -> (tab, where)",
- "Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.");
+ "Returns the tab which is hit, and flags indicating where using
+wx.NB_HITTEST flags.", "");
// implement some base class functions
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
// Windows only: attempts to apply the UX theme page background to this page
void ApplyThemeBackground(wxWindow* window, const wxColour& colour);
#endif
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};
+MustHaveApp(wxListbook);
+
// wxListCtrl and wxNotebook combination
class wxListbook : public wxBookCtrl
{
%pythonAppend wxListbook() ""
wxListbook(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
%name(PreListbook)wxListbook();
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,