Contents Up Previous Next

wxNotebookEvent

This class represents the events generated by a notebook control: currently, there are two of them. The PAGE_CHANGING event is sent before the current page is changed. It allows to the program to exam./usr/share/doc/wxwin2.4-doc/wxWindows-manual.html/wxwin279.html0000644000000000000000000003377710246312307023306 0ustar rootroot wxNotebook

Contents Up Previous Next

wxNotebook

This class represents a notebook control, which manages multiple windows with associated tabs.

To use the class, create a wxNotebook object and call AddPage or InsertPage, passing a window to be used as the page. Do not explicitly delete the window for a page that is currently managed by wxNotebook.

wxNotebookPage is a typedef for wxWindow.

Derived from

wxControl
wxWindow
wxEvtHandler
wxObject

Include files

<wx/notebook.h>

Window styles

wxNB_LEFT Place tabs on the left side. Not supported under Windows XP.
wxNB_RIGHT Place tabs on the right side. Not supported under Windows XP.
wxNB_BOTTOM Place tabs under instead of above the notebook pages. Not supported under Windows XP.
wxNB_FIXEDWIDTH (Windows only) All tabs will have same width.
wxNB_MULTILINE (Windows only) There can be several rows of tabs.

See also window styles overview.

Event handling

To process input from a notebook control, use the following event handler macros to direct input to member functions that take a wxNotebookEvent argument.

EVT_NOTEBOOK_PAGE_CHANGED(id, func) The page selection was changed. Processes a wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED event.
EVT_NOTEBOOK_PAGE_CHANGING(id, func) The page selection is about to be changed. Proces