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{Include files
}
16 \wxheading{Event table macros
}
18 To process a notebook event, use these event handler macros to direct input to member
19 functions that take a wxNotebookEvent argument.
22 \begin{twocollist
}\itemsep=
0pt
23 \twocolitem{{\bf EVT
\_NOTEBOOK\_PAGE\_CHANGED(id, func)
}}{The page selection was changed. Processes a
24 wxEVT
\_COMMAND\_NOTEBOOK\_PAGE\_CHANGED event.
}
25 \twocolitem{{\bf EVT
\_NOTEBOOK\_PAGE\_CHANGING(id, func)
}}{The page selection is about to be changed.
26 Processes a wxEVT
\_COMMAND\_NOTEBOOK\_PAGE\_CHANGING event.
}
31 \helpref{wxNotebook
}{wxnotebook
},
\helpref{wxTabCtrl
}{wxtabctrl
},
\helpref{wxTabEvent
}{wxtabevent
}
33 \latexignore{\rtfignore{\wxheading{Members
}}}
35 \membersection{wxNotebookEvent::wxNotebookEvent
}\label{wxnotebookeventconstr
}
37 \func{}{wxNotebookEvent
}{\param{wxEventType
}{ eventType = wxEVT
\_NULL},
38 \param{int
}{ id =
0},
\param{int
}{ sel = -
1},
\param{int
}{ oldSel = -
1}}
42 \membersection{wxNotebookEvent::GetOldSelection
}\label{wxnotebookeventgetoldselection
}
44 \constfunc{int
}{GetOldSelection
}{\void}
46 Returns the page that was selected before the change, -
1 if none was selected.
48 \membersection{wxNotebookEvent::GetSelection
}\label{wxnotebookeventgetselection
}
50 \constfunc{int
}{GetSelection
}{\void}
52 Returns the currently selected page, or -
1 if none was selected.
54 \membersection{wxNotebookEvent::SetOldSelection
}\label{wxnotebookeventsetoldselection
}
56 \func{void
}{SetOldSelection
}{\param{int
}{ page
}}
58 Sets the id of the page selected before the change.
60 \membersection{wxNotebookEvent::SetSelection
}\label{wxnotebookeventsetselection
}
62 \func{void
}{SetSelection
}{\param{int
}{ page
}}
64 Sets the selection member variable.
68 \helpref{wxNotebookEvent::GetSelection
}{wxnotebookeventgetselection
}