X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb5117ce44fad7b0a856e5ac1d82e53c389f3248..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/bookctrl.h?ds=sidebyside diff --git a/interface/wx/bookctrl.h b/interface/wx/bookctrl.h index 41ef787efe..8545629faa 100644 --- a/interface/wx/bookctrl.h +++ b/interface/wx/bookctrl.h @@ -2,7 +2,6 @@ // Name: bookctrl.h // Purpose: interface of wxBookCtrlBase // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -31,6 +30,17 @@ enum 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 @@ -156,7 +166,7 @@ public: 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 @@ -173,7 +183,7 @@ public: 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. @@ -182,6 +192,17 @@ public: */ 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; + //@}