]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/overviews/bookctrl.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: topic overview
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
11 @page overview_bookctrl wxBookCtrl Overview
23 @li @ref overview_bookctrl_intro
24 @li @ref overview_bookctrl_bestbookctrl
30 @section overview_bookctrl_intro Introduction
32 A book control is a convenient way of displaying multiple pages of information,
33 displayed one page at a time. wxWidgets has five variants of this control:
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
41 See the @ref page_samples_notebook for an example of wxBookCtrl usage.
44 @section overview_bookctrl_bestbookctrl Best Book
46 ::wxBookCtrl is mapped to the class best suited for a given platform. Currently
47 it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook
48 for all other platforms. The mapping consists of:
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) }
66 For orientation of the book controller, use following flags in style:
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