]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/bookctrl.h
Fix broken and missing DataView interface items for Phoenix
[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
e7054054 13@tableofcontents
36c9828f 14
880efa2a
BP
15A book control is a convenient way of displaying multiple pages of information,
16displayed one page at a time. wxWidgets has five variants of this control:
36c9828f 17
880efa2a
BP
18@li wxChoicebook: controlled by a wxChoice
19@li wxListbook: controlled by a wxListCtrl
20@li wxNotebook: uses a row of tabs
cc699de8 21@li wxSimplebook: doesn't allow the user to change the page at all.
880efa2a
BP
22@li wxTreebook: controlled by a wxTreeCtrl
23@li wxToolbook: controlled by a wxToolBar
59c0db6a 24
dc28cdf8 25See the @ref page_samples_notebook for an example of wxBookCtrl usage.
36c9828f 26
cc699de8
VZ
27Notice that wxSimplebook is special in that it only allows the program to
28change the selection, thus it's usually used in slightly different
29circumstances than the other variants.
36c9828f 30
e7054054
BP
31@see @ref group_class_bookctrl
32
33
34
880efa2a 35@section overview_bookctrl_bestbookctrl Best Book
36c9828f 36
d8231db2 37::wxBookCtrl is mapped to the class best suited for a given platform. Currently
880efa2a
BP
38it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook
39for all other platforms. The mapping consists of:
36c9828f 40
880efa2a 41@beginTable
d8231db2
FM
42@row2col{ ::wxBookCtrl, wxChoicebook or wxNotebook }
43@row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED,
44 @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or
45 @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED }
46@row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING,
47 @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or
48 @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING }
49@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
50 @c EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or
51 @c EVT_NOTEBOOK_PAGE_CHANGED(id, fn) }
52@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
53 @c EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or
54 @c EVT_NOTEBOOK_PAGE_CHANGING(id, fn) }
880efa2a
BP
55@endTable
56
57For orientation of the book controller, use following flags in style:
58
59@li @b wxBK_TOP: controller above pages
60@li @b wxBK_BOTTOM: controller below pages
61@li @b wxBK_LEFT: controller on the left
62@li @b wxBK_RIGHT: controller on the right
63@li @b wxBK_DEFAULT: native controller placement
36c9828f 64
59c0db6a 65*/
36c9828f 66