1 \section{\class{wxNotebookEvent
}}\label{wxnotebookevent
}
3 This class represents the events generated by a notebook control.
5 \wxheading{Derived from
}
7 \helpref{wxCommandEvent
}{wxcommandevent
}\\
8 \helpref{wxEvent
}{wxevent
}\\
9 \helpref{wxEvtHandler
}{wxevthandler
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Event table macros
}
14 To process a notebook event, use these event handler macros to direct input to member
15 functions that take a wxNotebookEvent argument.
18 \begin{twocollist
}\itemsep=
0pt
19 \twocolitem{{\bf EVT
\_NOTEBOOK_PAGE_CHANGED(id, func)
}}{The page selection was changed. Processes a
20 wxEVT
\_COMMAND\_NOTEBOOK\_PAGE\_CHANGED event.
}
21 \twocolitem{{\bf EVT
\_NOTEBOOK_PAGE_CHANGING(id, func)
}}{The page selection is about to be changed.
22 Processes a wxEVT
\_COMMAND\_NOTEBOOK\_PAGE\_CHANGING event.
}
27 \helpref{wxNotebook
}{wxnotebook
},
\helpref{wxTabCtrl
}{wxtabctrl
},
\helpref{wxTabEvent
}{wxtabevent
}
29 \latexignore{\rtfignore{\wxheading{Members
}}}
31 \membersection{wxNotebookEvent::wxNotebookEvent
}\label{wxnotebookeventconstr
}
33 \func{}{wxNotebookEvent
}{\param{wxEventType
}{ eventType = wxEVT
\_NULL},
34 \param{int
}{ id =
0},
\param{int
}{ sel = -
1},
\param{int
}{ oldSel = -
1}}
38 \membersection{wxNotebookEvent::GetOldSelection
}\label{wxnotebookeventgetoldselection
}
40 \constfunc{int
}{GetOldSelection
}{\void}
42 Returns the page that was selected before the change, -
1 if none was selected.
44 \membersection{wxNotebookEvent::GetSelection
}\label{wxnotebookeventgetselection
}
46 \constfunc{int
}{GetSelection
}{\void}
48 Returns the currently selected page, or -
1 if none was selected.
50 \membersection{wxNotebookEvent::SetOldSelection
}\label{wxnotebookeventsetoldselection
}
52 \func{void
}{SetOldSelection
}{\param{int
}{ page
}}
54 Sets the id of the page selected before the change.
56 \membersection{wxNotebookEvent::SetSelection
}\label{wxnotebookeventsetselection
}
58 \func{void
}{SetSelection
}{\param{int
}{ page
}}
60 Sets the selection member variable.
64 \helpref{wxNotebookEvent::GetSelection
}{wxnotebookeventgetselection
}