/**
Returns the currently selected page, or -1 if none was selected.
- @b NB: under Windows, GetSelection() will return the same value as
+ @note under Windows, GetSelection() will return the same value as
GetOldSelection() when called from
@c EVT_NOTEBOOK_PAGE_CHANGING handler and not the page which is going to
be selected. Also note that the values of selection and old selection returned
@b wxNotebookPage is a typedef for wxWindow.
@beginStyleTable
- @style{wxNB_TOP}:
+ @style{wxNB_TOP}
Place tabs on the top side.
- @style{wxNB_LEFT}:
+ @style{wxNB_LEFT}
Place tabs on the left side.
- @style{wxNB_RIGHT}:
+ @style{wxNB_RIGHT}
Place tabs on the right side.
- @style{wxNB_BOTTOM}:
+ @style{wxNB_BOTTOM}
Place tabs under instead of above the notebook pages.
- @style{wxNB_FIXEDWIDTH}:
+ @style{wxNB_FIXEDWIDTH}
(Windows only) All tabs will have same width.
- @style{wxNB_MULTILINE}:
+ @style{wxNB_MULTILINE}
(Windows only) There can be several rows of tabs.
- @style{wxNB_NOPAGETHEME}:
+ @style{wxNB_NOPAGETHEME}
(Windows only) Display a solid colour on notebook pages, and not a
gradient, which can reduce performance.
- @style{wxNB_FLAT}:
+ @style{wxNB_FLAT}
(Windows CE only) Show tabs in a flat style.
@endStyleTable
/**
Destroys the wxNotebook object.
*/
- ~wxNotebook();
+ virtual ~wxNotebook();
/**
Adds a new page.
This is the only difference with SetSelection().
See @ref overview_progevent "this topic" for more info.
*/
- int ChangeSelection(size_t page);
+ virtual int ChangeSelection(size_t page);
/**
Creates a notebook control. See wxNotebook() for a description
*/
bool Create(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
- const wxSize& size, long style = 0,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
const wxString& name = wxNotebookNameStr);
/**
Deletes all pages.
*/
- bool DeleteAllPages();
+ virtual bool DeleteAllPages();
/**
Deletes the specified page, and the associated window.
/**
Returns the image index for the given page.
*/
- int GetPageImage(size_t nPage) const;
+ virtual int GetPageImage(size_t nPage) const;
/**
Returns the string for the given page.
*/
- wxString GetPageText(size_t nPage) const;
+ virtual wxString GetPageText(size_t nPage) const;
/**
Returns the number of rows in the notebook control.
*/
- int GetRowCount() const;
+ virtual int GetRowCount() const;
/**
Returns the currently selected page, or -1 if none was selected.
wxNotebookEvent::GetSelection should be
used instead in this case.
*/
- int GetSelection() const;
+ virtual int GetSelection() const;
/**
If running under Windows and themes are enabled for the application, this
can be passed
to @c SetBackgroundColour. Otherwise, an uninitialised colour will be returned.
*/
- wxColour GetThemeBackgroundColour() const;
+ virtual wxColour GetThemeBackgroundColour() const;
/**
Returns the index of the tab at the specified position or @c wxNOT_FOUND
@returns Returns the zero-based tab index or wxNOT_FOUND if there is no
tab is at the specified position.
*/
- int HitTest(const wxPoint& pt, long flags = NULL);
+ virtual int HitTest(const wxPoint& pt, long* = NULL) const;
/**
Inserts a new page at the specified position.
/**
Sets the amount of space around each page's icon and label, in pixels.
- @b NB: The vertical padding cannot be changed in wxGTK.
+ @note The vertical padding cannot be changed in wxGTK.
*/
void SetPadding(const wxSize& padding);
Sets the image index for the given page. @a image is an index into
the image list which was set with SetImageList().
*/
- bool SetPageImage(size_t page, int image);
+ virtual bool SetPageImage(size_t page, int image);
/**
Sets the width and height of the pages.
- @b NB: This method is currently not implemented for wxGTK.
+ @note This method is currently not implemented for wxGTK.
*/
- void SetPageSize(const wxSize& size);
+ virtual void SetPageSize(const wxSize& size);
/**
Sets the text for the given page.
*/
- bool SetPageText(size_t page, const wxString& text);
+ virtual bool SetPageText(size_t page, const wxString& text);
/**
Sets the selection for the given page, returning the previous selection.
@see GetSelection()
*/
- int SetSelection(size_t page);
+ virtual int SetSelection(size_t page);
};