wxBK_HITTEST_ONPAGE = 8
};
+/**
+ wxBookCtrl flags (common for wxNotebook, wxListbook, wxChoicebook, wxTreebook)
+*/
+#define wxBK_DEFAULT 0x0000
+#define wxBK_TOP 0x0010
+#define wxBK_BOTTOM 0x0020
+#define wxBK_LEFT 0x0040
+#define wxBK_RIGHT 0x0080
+#define wxBK_ALIGN_MASK (wxBK_TOP | wxBK_BOTTOM | wxBK_LEFT | wxBK_RIGHT)
+
+
/**
@class wxBookCtrlBase
wxWindow* GetCurrentPage() const;
/**
- Sets the selection for the given page, returning the previous selection.
+ Sets the selection to the given page, returning the previous selection.
Notice that the call to this function generates the page changing
events, use the ChangeSelection() function if you don't want these
void AdvanceSelection(bool forward = true);
/**
- Changes the selection for the given page, returning the previous selection.
+ Changes the selection to the given page, returning the previous selection.
This function behaves as SetSelection() but does @em not generate the
page changing events.
*/
virtual int ChangeSelection(size_t page) = 0;
+ /**
+ Returns the index of the specified tab window or @c wxNOT_FOUND
+ if not found.
+
+ @param page One of the control pages.
+ @return The zero-based tab index or @c wxNOT_FOUND if not found.
+
+ @since 2.9.5
+ */
+ int FindPage(const wxWindow* page) const;
+
//@}