This class is an extension of the
To use the class simply create it and populate with pages using
If your tree is no more than 1 level in depth then you could simply use
See: ?wxBookCtrl,
This class is derived (and can use functions) from:
wxWidgets docs:
Event types emitted from this class:
Default constructor.
Creates an empty
Destroys the
Also deletes all the pages owned by the control (inserted previously into it).
Adds a new page.
The page is placed at the topmost level after all other pages. NULL could be specified for page to create an empty page.
Cycles through the tabs.
The call to this function generates the page changing events.
Sets the image list for the page control and takes ownership of the list.
See:
Creates a treebook control.
See
Deletes all pages.
Returns the currently selected page or NULL.
Returns the associated image list, may be NULL.
See:
Returns the window at the given page position.
Returns the number of pages in the control.
Returns the image index for the given page.
Returns the string for the given page.
Returns the currently selected page, or
Note: This method may return either the previously or newly selected page when called from the EVT_TREEBOOK_PAGE_CHANGED() handler depending on the platform and so
Expands (collapses) the
Returns the previous state. May generate page changing events (if selected page is under the collapsed branch, then its parent is autoselected).
Returns true if the page represented by
Returns the index of the tab at the specified position or
If
Return: Returns the zero-based tab index or
Inserts a new page just before the page indicated by
The new page is placed before
Inserts a sub page under the specified page.
NULL could be specified for page to create an empty page.
Sets the image list to use.
It does not take ownership of the image list, you must delete it yourself.
See:
Sets the width and height of the pages.
Note: This method is currently not implemented for wxGTK.
Sets the image index for the given page.
Sets the text for the given page.
Sets the selection to the given page, returning the previous selection.
Notice that the call to this function generates the page changing events, use the
See:
Changes the selection to the given page, returning the previous selection.
This function behaves as
See overview_events_prog for more information.