wxtreebookeventthis class represents the events generated by a treebook control: currently, there are four of them. the page_changing and page_changed - have exactly the same behaviour as wxnotebookevent. the other two node_collapsed and node_expanded are triggered when page node in the tree control is collapsed/expanded. the page index could be retreived by calling wxtreebookevent::getselection.
derived from
wxbookctrlbaseevent
include files <treebook.h>
event handling to process input from a treebook control, use the following event handler macros to direct input to member functions that take a wxtreebookevent argument.
see also
members
wxtreebookevent::wxtreebookevent
wxtreebookevent::wxtreebookeventwxtreebookevent(wxeventtype commandtype = wxevt_null, int id = 0, int nsel = wxnot_found, int noldsel = wxnot_found) see also
wxtreebookevent::getoldselectionint getoldselection() const returns the page that was selected before the change, wxnot_found if none was selected.
wxtreebookevent::getselectionint getselection() const returns the currently selected page, or wxnot_found if none was selected. see also
|