2008-02-18 19:04:03 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-02-21 16:58:30 -05:00
|
|
|
// Name: bookctrl.h
|
2008-02-18 19:04:03 -05:00
|
|
|
// Purpose: topic overview
|
|
|
|
// Author: wxWidgets team
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-02-18 19:04:03 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
/**
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
@page overview_bookctrl wxBookCtrl Overview
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2012-11-03 14:29:28 -04:00
|
|
|
@tableofcontents
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
A book control is a convenient way of displaying multiple pages of information,
|
|
|
|
displayed one page at a time. wxWidgets has five variants of this control:
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
@li wxChoicebook: controlled by a wxChoice
|
|
|
|
@li wxListbook: controlled by a wxListCtrl
|
|
|
|
@li wxNotebook: uses a row of tabs
|
2012-08-30 16:21:54 -04:00
|
|
|
@li wxSimplebook: doesn't allow the user to change the page at all.
|
2008-03-12 04:50:42 -04:00
|
|
|
@li wxTreebook: controlled by a wxTreeCtrl
|
|
|
|
@li wxToolbook: controlled by a wxToolBar
|
2008-02-21 16:58:30 -05:00
|
|
|
|
2008-03-22 13:42:29 -04:00
|
|
|
See the @ref page_samples_notebook for an example of wxBookCtrl usage.
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2012-08-30 16:21:54 -04:00
|
|
|
Notice that wxSimplebook is special in that it only allows the program to
|
|
|
|
change the selection, thus it's usually used in slightly different
|
|
|
|
circumstances than the other variants.
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2012-11-03 14:29:28 -04:00
|
|
|
@see @ref group_class_bookctrl
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
@section overview_bookctrl_bestbookctrl Best Book
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-10-13 07:03:01 -04:00
|
|
|
::wxBookCtrl is mapped to the class best suited for a given platform. Currently
|
2015-08-27 11:48:54 -04:00
|
|
|
it is the same as wxNotebook if it is compiled in (i.e. @c wxUSE_NOTEBOOK was
|
|
|
|
not explicitly set to 0), otherwise it is the same as wxChoicebook.
|
|
|
|
|
|
|
|
The mapping consists of:
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
@beginTable
|
2008-10-13 07:03:01 -04:00
|
|
|
@row2col{ ::wxBookCtrl, wxChoicebook or wxNotebook }
|
2019-07-22 15:09:37 -04:00
|
|
|
@row2col{ @c wxEVT_BOOKCTRL_PAGE_CHANGED,
|
|
|
|
@c wxEVT_CHOICEBOOK_PAGE_CHANGED or
|
|
|
|
@c wxEVT_NOTEBOOK_PAGE_CHANGED }
|
|
|
|
@row2col{ @c wxEVT_BOOKCTRL_PAGE_CHANGING,
|
|
|
|
@c wxEVT_CHOICEBOOK_PAGE_CHANGING or
|
|
|
|
@c wxEVT_NOTEBOOK_PAGE_CHANGING }
|
2008-10-13 07:03:01 -04:00
|
|
|
@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
|
|
|
|
@c EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or
|
|
|
|
@c EVT_NOTEBOOK_PAGE_CHANGED(id, fn) }
|
|
|
|
@row2col{ @c EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
|
|
|
|
@c EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or
|
|
|
|
@c EVT_NOTEBOOK_PAGE_CHANGING(id, fn) }
|
2008-03-12 04:50:42 -04:00
|
|
|
@endTable
|
|
|
|
|
|
|
|
For orientation of the book controller, use following flags in style:
|
|
|
|
|
|
|
|
@li @b wxBK_TOP: controller above pages
|
|
|
|
@li @b wxBK_BOTTOM: controller below pages
|
|
|
|
@li @b wxBK_LEFT: controller on the left
|
|
|
|
@li @b wxBK_RIGHT: controller on the right
|
|
|
|
@li @b wxBK_DEFAULT: native controller placement
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
*/
|
2008-02-19 08:28:24 -05:00
|
|
|
|