]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: bookctrl.h | |
3 | // Purpose: topic overview | |
4 | // Author: wxWidgets team | |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /*! | |
10 | ||
11 | @page overview_bookctrl wxBookCtrl overview | |
12 | ||
13 | Classes: wxNotebook, wxListbook, wxChoicebook, wxTreebook, wxToolbook | |
14 | ||
15 | @li @ref overview_bookctrl_intro | |
16 | @li @ref overview_bookctrl_bestbookctrl | |
17 | ||
18 | ||
19 | <hr> | |
20 | ||
21 | ||
22 | @section overview_bookctrl_intro Introduction | |
23 | ||
24 | A book control is a convenient way of displaying multiple pages of information, | |
25 | displayed one page at a time. wxWidgets has five variants of this control: | |
26 | ||
27 | @li wxNotebook: uses a row of tabs | |
28 | @li wxListbook: controlled by a wxListCtrl | |
29 | @li wxChoicebook: controlled by a wxChoice | |
30 | @li wxTreebook: controlled by a wxTreeCtrl | |
31 | @li wxToolbook: controlled by a wxToolBar | |
32 | ||
33 | See @ref page_utils_samples_notebook for an example of wxBookCtrl usage. | |
34 | ||
35 | ||
36 | @section overview_bookctrl_bestbookctrl Best book | |
37 | ||
38 | wxBookCtrl is mapped to the class best suited for a given platform. | |
39 | Currently it provides wxChoicebook for smartphones equipped with | |
40 | WinCE, and wxNotebook for all other platforms. The mapping consists of: | |
41 | ||
42 | @beginTable | |
43 | @row2col{wxBookCtrl, wxChoicebook or wxNotebook} | |
44 | @row2col{wxBookCtrlEvent, wxChoicebookEvent or wxNotebookEvent} | |
45 | @row2col{wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED, | |
46 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED} | |
47 | @row2col{wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING, | |
48 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING} | |
49 | @row2col{EVT_BOOKCTRL_PAGE_CHANGED(id\, fn), | |
50 | EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or EVT_NOTEBOOK_PAGE_CHANGED(id, fn)} | |
51 | @row2col{EVT_BOOKCTRL_PAGE_CHANGING(id\, fn), | |
52 | EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or EVT_NOTEBOOK_PAGE_CHANGING(id, fn)} | |
53 | @endTable | |
54 | ||
55 | For orientation of the book controller, use following flags in style: | |
56 | ||
57 | @li @b wxBK_TOP: controller above pages | |
58 | @li @b wxBK_BOTTOM: controller below pages | |
59 | @li @b wxBK_LEFT: controller on the left | |
60 | @li @b wxBK_RIGHT: controller on the right | |
61 | @li @b wxBK_DEFAULT: native controller placement | |
62 | ||
63 | */ | |
64 |