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