]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/bookctrl.h
document standard IDs only in one place, not two; bring the list up to date
[wxWidgets.git] / docs / doxygen / overviews / bookctrl.h
CommitLineData
15b6757b 1/////////////////////////////////////////////////////////////////////////////
59c0db6a 2// Name: bookctrl.h
15b6757b
FM
3// Purpose: topic overview
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
880efa2a 9/**
36c9828f 10
880efa2a 11@page overview_bookctrl wxBookCtrl Overview
36c9828f 12
880efa2a 13Classes:
36c9828f 14
880efa2a
BP
15@li wxChoicebook
16@li wxListbook
17@li wxNotebook
18@li wxTreebook
19@li wxToolbook
30738aae 20
880efa2a 21Sections:
30738aae 22
880efa2a
BP
23@li @ref overview_bookctrl_intro
24@li @ref overview_bookctrl_bestbookctrl
30738aae 25
36c9828f 26
880efa2a 27<hr>
36c9828f 28
36c9828f 29
880efa2a 30@section overview_bookctrl_intro Introduction
36c9828f 31
880efa2a
BP
32A book control is a convenient way of displaying multiple pages of information,
33displayed one page at a time. wxWidgets has five variants of this control:
36c9828f 34
880efa2a
BP
35@li wxChoicebook: controlled by a wxChoice
36@li wxListbook: controlled by a wxListCtrl
37@li wxNotebook: uses a row of tabs
38@li wxTreebook: controlled by a wxTreeCtrl
39@li wxToolbook: controlled by a wxToolBar
59c0db6a 40
880efa2a 41See the @ref page_utils_samples_notebook for an example of wxBookCtrl usage.
36c9828f 42
36c9828f 43
880efa2a 44@section overview_bookctrl_bestbookctrl Best Book
36c9828f 45
880efa2a
BP
46wxBookCtrl is mapped to the class best suited for a given platform. Currently
47it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook
48for all other platforms. The mapping consists of:
36c9828f 49
880efa2a
BP
50@beginTable
51@row2col{ wxBookCtrl, wxChoicebook or wxNotebook }
52@row2col{ wxBookCtrlEvent, wxChoicebookEvent or wxNotebookEvent }
53@row2col{ wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED,
54 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or
55 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED }
56@row2col{ wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING,
57 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or
58 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING }
59@row2col{ EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
60 EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or
61 EVT_NOTEBOOK_PAGE_CHANGED(id, fn) }
62@row2col{ EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
63 EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or
64 EVT_NOTEBOOK_PAGE_CHANGING(id, fn) }
65@endTable
66
67For orientation of the book controller, use following flags in style:
68
69@li @b wxBK_TOP: controller above pages
70@li @b wxBK_BOTTOM: controller below pages
71@li @b wxBK_LEFT: controller on the left
72@li @b wxBK_RIGHT: controller on the right
73@li @b wxBK_DEFAULT: native controller placement
36c9828f 74
59c0db6a 75*/
36c9828f 76