X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1b7217e23ca588d0b9073ad0e98165593a9df5a..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/bookctrl.h diff --git a/interface/wx/bookctrl.h b/interface/wx/bookctrl.h index bbffcc27d6..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 ///////////////////////////////////////////////////////////////////////////// @@ -167,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 @@ -184,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. @@ -193,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; + //@}