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; }
+ void SetFitToCurrentPage(bool fit) { m_fitToCurrentPage = fit; }
+ bool GetFitToCurrentPage() const { return m_fitToCurrentPage; }
// operations
// ----------
wxControl *m_bookctrl;
// Whether to shrink to fit current page
- bool m_shrinkToFit;
+ bool m_fitToCurrentPage;
private:
m_bookctrl = NULL;
m_imageList = NULL;
m_ownsImageList = false;
- m_shrinkToFit = false;
+ m_fitToCurrentPage = false;
#if defined(__WXWINCE__)
m_internalBorder = 1;
}
}
- if (m_shrinkToFit && GetCurrentPage())
+ if (m_fitToCurrentPage && GetCurrentPage())
bestSize = GetCurrentPage()->GetBestSize();
// convert display area to window area, adding the size necessary for the
bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
if (GetSheetStyle() & wxPROPSHEET_SHRINKTOFIT)
- bookCtrl->SetShrinkMode(true);
+ bookCtrl->SetFitToCurrentPage(true);
return bookCtrl;
}