X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb5117ce44fad7b0a856e5ac1d82e53c389f3248..cc33ae725d8338fbb499490b69c96968c8fac9cb:/interface/wx/bookctrl.h diff --git a/interface/wx/bookctrl.h b/interface/wx/bookctrl.h index 41ef787efe..27f241600f 100644 --- a/interface/wx/bookctrl.h +++ b/interface/wx/bookctrl.h @@ -31,6 +31,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 +167,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 +184,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 +193,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; + //@}