git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32728
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
long style)
: wxFrame((wxWindow *) NULL, wxID_ANY, title, pos, size, style)
{
long style)
: wxFrame((wxWindow *) NULL, wxID_ANY, title, pos, size, style)
{
m_type = ID_BOOK_NOTEBOOK;
m_type = ID_BOOK_NOTEBOOK;
+#elif wxUSE_CHOICEBOOK
+ m_type = ID_BOOK_CHOICEBOOK;
+#elif wxUSE_LISTBOOK
+ m_type = ID_BOOK_LISTBOOK;
+#elif
+ #error "Don't use Notebook sample without any book enabled in wxWidgets build!"
+#endif
+
m_orient = ID_ORIENT_DEFAULT;
m_chkShowImages = true;
m_multi = false;
m_orient = ID_ORIENT_DEFAULT;
m_chkShowImages = true;
m_multi = false;
#if wxUSE_CHOICEBOOK
menuType->AppendRadioItem(ID_BOOK_CHOICEBOOK, wxT("&Choicebook\tCtrl-3"));
#endif
#if wxUSE_CHOICEBOOK
menuType->AppendRadioItem(ID_BOOK_CHOICEBOOK, wxT("&Choicebook\tCtrl-3"));
#endif
+ menuType->Check(m_type, true);
wxMenu *menuOrient = new wxMenu;
menuOrient->AppendRadioItem(ID_ORIENT_DEFAULT, wxT("&Default\tCtrl-4"));
wxMenu *menuOrient = new wxMenu;
menuOrient->AppendRadioItem(ID_ORIENT_DEFAULT, wxT("&Default\tCtrl-4"));