X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95835bc453babb3a78d23573f241adcfb985aa17..61f09f569358d7b2752733c4a24d1bd10daefae2:/include/wx/bookctrl.h diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index e101e0660c..66704cb9a1 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -137,8 +137,14 @@ public: // 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; } @@ -312,7 +318,6 @@ protected: 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)