wxBK_BOTTOM,
wxBK_LEFT,
wxBK_RIGHT,
- wxBK_ALIGN_MASK
+ wxBK_ALIGN_MASK,
+ wxBK_BUTTONBAR
};
// returns true if we have wxCHB_TOP or wxCHB_BOTTOM style
bool IsVertical() const;
+ // Sets/gets the margin around the controller
+ void SetControlMargin(int margin);
+ int GetControlMargin() const;
+
// set/get option to shrink to fit current page
void SetFitToCurrentPage(bool fit);
bool GetFitToCurrentPage() const;
+ // returns the sizer containing the control, if any
+ wxSizer* GetControlSizer() const;
+
// remove one page from the control and delete it
virtual bool DeletePage(size_t n);
// cycle thru the pages
void AdvanceSelection(bool forward = true);
+ DocDeclAStr(
+ virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const,
+ "HitTest(Point pt) -> (tab, where)",
+ "Returns the page/tab which is hit, and flags indicating where using
+wx.NB_HITTEST flags.", "");
+
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
};
// set the size of the tabs for wxNB_FIXEDWIDTH controls
virtual void SetTabSize(const wxSize& sz);
- // hit test, returns which tab is hit and, optionally, where (icon, label)
- // (not implemented on all platforms)
- 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.", "");
-
// implement some base class functions
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;