X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9804d5404a9607cda3d08ec8225f52f78b78bc72..cdac585c3bb7f5cad3ff095578212a9371fec7f6:/include/wx/notebook.h diff --git a/include/wx/notebook.h b/include/wx/notebook.h index 88551e2f23..7fdb284892 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -89,6 +89,17 @@ public: // On platforms that support it, get the theme page background colour, else invalid colour virtual wxColour GetThemeBackgroundColour() const { return wxNullColour; } + + // send wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING/ED events + + // returns false if the change to nPage is vetoed by the program + bool SendPageChangingEvent(int nPage); + + // sends the event about page change from old to new (or GetSelection() if + // new is -1) + void SendPageChangedEvent(int nPageOld, int nPageNew = -1); + + protected: DECLARE_NO_COPY_CLASS(wxNotebookBase) };