]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/bookctrl.h
Merge in from trunk r67662 to r64801
[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$
526954c5 6// Licence: wxWindows licence
15b6757b
FM
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
dc28cdf8 41See the @ref page_samples_notebook for an example of wxBookCtrl usage.
36c9828f 42
36c9828f 43
880efa2a 44@section overview_bookctrl_bestbookctrl Best Book
36c9828f 45
d8231db2 46::wxBookCtrl is mapped to the class best suited for a given platform. Currently
880efa2a
BP
47it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook
48for all other platforms. The mapping consists of:
36c9828f 49
880efa2a 50@beginTable
d8231db2
FM
51@row2col{ ::wxBookCtrl, wxChoicebook or wxNotebook }
52@row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED,
53 @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or
54 @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED }
55@row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING,
56 @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or
57 @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING }
58@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
59 @c EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or
60 @c EVT_NOTEBOOK_PAGE_CHANGED(id, fn) }
61@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
62 @c EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or
63 @c EVT_NOTEBOOK_PAGE_CHANGING(id, fn) }
880efa2a
BP
64@endTable
65
66For orientation of the book controller, use following flags in style:
67
68@li @b wxBK_TOP: controller above pages
69@li @b wxBK_BOTTOM: controller below pages
70@li @b wxBK_LEFT: controller on the left
71@li @b wxBK_RIGHT: controller on the right
72@li @b wxBK_DEFAULT: native controller placement
36c9828f 73
59c0db6a 74*/
36c9828f 75