// resize the notebook so that all pages will have the specified size
virtual void SetPageSize(const wxSize& size);
+ // return the size of the area needed to accommodate the controller
+ wxSize GetControllerSize() const;
+
// calculate the size of the control from the size of its page
- virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const = 0;
+ //
+ // by default this simply returns size enough to fit both the page and the
+ // controller
+ virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;
// get/set size of area between book control area and page area
unsigned int GetInternalBorder() const { return m_internalBorder; }
virtual wxRect GetPageRect() const;
// event handlers
- virtual wxSize GetControllerSize() const;
void OnSize(wxSizeEvent& event);
// controller buddy if available, NULL otherwise (usually for native book controls like wxNotebook)