]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/overviews/bookctrl.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: topic overview
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 @page bookctrl_overview wxBookCtrl overview
13 Classes: #wxNotebook, #wxListbook, #wxChoicebook,
14 #wxTreebook, #wxToolbook
16 @ref bestbookctrl_overview
19 @section wxbookctrlintro Introduction
21 A book control is a convenient way of displaying multiple pages of information,
22 displayed one page at a time. wxWidgets has five variants of this control:
25 #wxNotebook: uses a row of tabs
26 #wxListbook: controlled by a #wxListCtrl
27 #wxChoicebook: controlled by a #wxChoice
28 #wxTreebook: controlled by a #wxTreeCtrl
29 #wxToolbook: controlled by a #wxToolBar
32 See @ref samplenotebook_overview for an example of wxBookCtrl usage.
34 @section wxbestbookctrl Best book
36 wxBookCtrl is mapped to the class best suited for a given platform.
37 Currently it provides #wxChoicebook for smartphones equipped with
38 WinCE, and #wxNotebook for all other platforms. The mapping consists of:
51 wxChoicebook or wxNotebook
62 wxChoicebookEvent or wxNotebookEvent
68 wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED
73 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
79 wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING
84 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
90 EVT_BOOKCTRL_PAGE_CHANGED(id, fn)
95 EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or EVT_NOTEBOOK_PAGE_CHANGED(id, fn)
101 EVT_BOOKCTRL_PAGE_CHANGING(id, fn)
106 EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or EVT_NOTEBOOK_PAGE_CHANGING(id, fn)
112 For orientation of the book controller, use following flags in style:
125 controller above pages
136 controller below pages
147 controller on the left
158 controller on the right
169 native controller placement