]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bookctrl.h
removed GTKConvertMnemonics() which is not used in GTK1 (which doesn't support mnemonics)
[wxWidgets.git] / include / wx / bookctrl.h
index 71d1a392836def49c43b0f95dea717d6f2133e1d..ea8784a5db03c4758882ff04cc211a83ede184f4 100644 (file)
@@ -131,6 +131,10 @@ public:
     // 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
     // ----------
 
@@ -229,6 +233,9 @@ protected:
     // 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