]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/notebook.h
availability does not include any other headers, but it provides the necessary macros...
[wxWidgets.git] / include / wx / notebook.h
index 88551e2f235d77c87b0e943979b540859fdf728f..7fdb284892a7fed0cb10e0d5a1e797f4929cd70c 100644 (file)
@@ -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)
 };