// returns true if we have wxCHB_TOP or wxCHB_BOTTOM style
bool IsVertical() const { return HasFlag(wxBK_BOTTOM | wxBK_TOP); }
+ // set/get option to shrink to fit current page
+ void SetShrinkMode(bool shrink) { m_shrinkToFit = shrink; }
+ bool GetShrinkMode() const { return m_shrinkToFit; }
+
// operations
// ----------
// controller buddy if available, NULL otherwise (usually for native book controls like wxNotebook)
wxControl *m_bookctrl;
+ // Whether to shrink to fit current page
+ bool m_shrinkToFit;
+
private:
// common part of all ctors