1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: treebookevent.tex
3 %% Purpose: wxTreebookEvent documentation
4 %% Author: Evgeniy Tarassov
8 %% Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwindows.org>
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxTreebookEvent
}}\label{wxtreebookevent
}
14 This class represents the events generated by a treebook control: currently,
15 there are four of them. The PAGE
\_CHANGING and PAGE
\_CHANGED - have exactly the same
16 behaviour as
\helpref{wxNotebookEvent
}{wxnotebookevent
}.
18 The other two NODE
\_COLLAPSED and NODE
\_EXPANDED are triggered when page node in the tree control
19 is collapsed/expanded. The page index could be retreived by calling
20 \helpref{wxTreebookEvent::GetSelection
}{wxtreebookeventgetselection
}.
24 \wxheading{Derived from
}
27 \helpref{wxNotifyEvent
}{wxnotifyevent
}\\
28 \helpref{wxCommandEvent
}{wxcommandevent
}\\
29 \helpref{wxEvent
}{wxevent
}\\
30 \helpref{wxObject
}{wxobject
}
34 \wxheading{Include files
}
40 \helpref{wxCore
}{librarieslist
}
44 \input treebookevt.inc
50 \helpref{wxNotebookEvent
}{wxnotebookevent
},
\helpref{wxTreebook
}{wxtreebook
}
54 \latexignore{\rtfignore{\wxheading{Members
}}}
57 \membersection{wxTreebookEvent::wxTreebookEvent
}\label{wxtreebookeventwxtreebookevent
}
59 \func{}{wxTreebookEvent
}{\param{wxEventType
}{commandType = wxEVT
\_NULL},
\param{int
}{id =
0},
\param{int
}{nSel = wxNOT
\_FOUND},
\param{int
}{nOldSel = wxNOT
\_FOUND}}
63 \helpref{wxNotebookEvent
}{wxnotebookevent
}
67 \membersection{wxTreebookEvent::GetOldSelection
}\label{wxtreebookeventgetoldselection
}
69 \constfunc{int
}{GetOldSelection
}{\void}
71 Returns the page that was selected before the change, wxNOT
\_FOUND if none was selected.
75 \membersection{wxTreebookEvent::GetSelection
}\label{wxtreebookeventgetselection
}
77 \constfunc{int
}{GetSelection
}{\void}
79 Returns the currently selected page, or wxNOT
\_FOUND if none was selected.
83 \helpref{wxNotebookEvent::GetSelection
}{wxnotebookeventgetselection
}