const wxCoord MARGIN = 5;
// ----------------------------------------------------------------------------
-// various wxWindows macros
+// various wxWidgets macros
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxListbook, wxControl)
m_line = new wxStaticLine
(
this,
- -1,
+ wxID_ANY,
wxDefaultPosition,
wxDefaultSize,
IsVertical() ? wxLI_HORIZONTAL : wxLI_VERTICAL
page->Hide();
}
+ InvalidateBestSize();
return true;
}
return win;
}
+
+bool wxListbook::DeleteAllPages()
+{
+ m_list->DeleteAllItems();
+ return wxBookCtrl::DeleteAllPages();
+}
+
// ----------------------------------------------------------------------------
// wxListbook events
// ----------------------------------------------------------------------------