This class represents the events generated by a notebook control.
Derived from
wxCommandEvent
wxEvent
wxEvtHandler
wxObject
Include files
<wx/notebook.h>
Event table macros
To process a notebook event, use these event handler macros to direct input to member functions that take a wxNotebookEvent argument.
EVT_NOTEBOOK_PAGE_CHANGED(id, func) | The page selection was changed. Processes a wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED event. |
EVT_NOTEBOOK_PAGE_CHANGING(id, func) | The page selection is about to be changed. Processes a wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING event. |
wxNotebook, wxTabCtrl, wxTabEvent
Members
wxNotebookEvent::wxNotebookEvent
wxNotebookEvent::GetOldSelection
wxNotebookEvent::GetSelection
wxNotebookEvent::SetOldSelection
wxNotebookEvent::SetSelection
wxNotebookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1)
Constructor.
int GetOldSelection() const
Returns the page that was selected before the change, -1 if none was selected.
int GetSelection() const
Returns the currently selected page, or -1 if none was selected.
void SetOldSelection(int page)
Sets the id of the page selected before the change.
void SetSelection(int page)
Sets the selection member variable.
See also