]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/noteevt.tex
Made wxLayoutAlgorithm more general (copes with nested sash windows)
[wxWidgets.git] / docs / latex / wx / noteevt.tex
CommitLineData
3972fb49
JS
1\section{\class{wxNotebookEvent}}\label{wxnotebookevent}
2
3This class represents the events generated by a notebook control.
4
5\wxheading{Derived from}
6
7\helpref{wxCommandEvent}{wxcommandevent}\\
8\helpref{wxEvent}{wxevent}\\
9\helpref{wxEvtHandler}{wxevthandler}\\
10\helpref{wxObject}{wxobject}
11
12\wxheading{Event table macros}
13
14To process a notebook event, use these event handler macros to direct input to member
15functions that take a wxNotebookEvent argument.
16
17\twocolwidtha{7cm}
18\begin{twocollist}\itemsep=0pt
2432b92d 19\twocolitem{{\bf EVT\_NOTEBOOK\_PAGE\_CHANGED(id, func)}}{The page selection was changed. Processes a
3972fb49 20wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGED event.}
2432b92d 21\twocolitem{{\bf EVT\_NOTEBOOK\_PAGE\_CHANGING(id, func)}}{The page selection is about to be changed.
3972fb49
JS
22Processes a wxEVT\_COMMAND\_NOTEBOOK\_PAGE\_CHANGING event.}
23\end{twocollist}%
24
25\wxheading{See also}
26
27\helpref{wxNotebook}{wxnotebook}, \helpref{wxTabCtrl}{wxtabctrl}, \helpref{wxTabEvent}{wxtabevent}
28
29\latexignore{\rtfignore{\wxheading{Members}}}
30
31\membersection{wxNotebookEvent::wxNotebookEvent}\label{wxnotebookeventconstr}
32
33\func{}{wxNotebookEvent}{\param{wxEventType}{ eventType = wxEVT\_NULL},
34 \param{int}{ id = 0}, \param{int}{ sel = -1}, \param{int}{ oldSel = -1}}
35
36Constructor.
37
38\membersection{wxNotebookEvent::GetOldSelection}\label{wxnotebookeventgetoldselection}
39
40\constfunc{int}{GetOldSelection}{\void}
41
42Returns the page that was selected before the change, -1 if none was selected.
43
44\membersection{wxNotebookEvent::GetSelection}\label{wxnotebookeventgetselection}
45
46\constfunc{int}{GetSelection}{\void}
47
48Returns the currently selected page, or -1 if none was selected.
49
50\membersection{wxNotebookEvent::SetOldSelection}\label{wxnotebookeventsetoldselection}
51
52\func{void}{SetOldSelection}{\param{int}{ page}}
53
54Sets the id of the page selected before the change.
55
56\membersection{wxNotebookEvent::SetSelection}\label{wxnotebookeventsetselection}
57
58\func{void}{SetSelection}{\param{int}{ page}}
59
60Sets the selection member variable.
61
62\wxheading{See also}
63
64\helpref{wxNotebookEvent::GetSelection}{wxnotebookeventgetselection}
65
66