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
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/*!
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
@page overview_bookctrl wxBookCtrl overview
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-25 17:29:37 -05:00
|
|
|
Classes: wxNotebook, wxListbook, wxChoicebook, wxTreebook, wxToolbook
|
2008-02-19 08:28:24 -05:00
|
|
|
|
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
@section overview_bookctrl_intro Introduction
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-18 19:04:03 -05: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-02-21 16:58:30 -05:00
|
|
|
@li wxNotebook: uses a row of tabs
|
2008-02-25 17:29:37 -05:00
|
|
|
@li wxListbook: controlled by a wxListCtrl
|
|
|
|
@li wxChoicebook: controlled by a wxChoice
|
|
|
|
@li wxTreebook: controlled by a wxTreeCtrl
|
|
|
|
@li wxToolbook: controlled by a wxToolBar
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-25 17:29:37 -05:00
|
|
|
See @ref page_utils_samples_notebook for an example of wxBookCtrl usage.
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
|
|
|
|
@section overview_bookctrl_bestbookctrl Best book
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-18 19:04:03 -05:00
|
|
|
wxBookCtrl is mapped to the class best suited for a given platform.
|
2008-02-25 17:29:37 -05:00
|
|
|
Currently it provides wxChoicebook for smartphones equipped with
|
|
|
|
WinCE, and wxNotebook for all other platforms. The mapping consists of:
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
@beginTable
|
|
|
|
@row2col{wxBookCtrl, wxChoicebook or wxNotebook}
|
|
|
|
@row2col{wxBookCtrlEvent, wxChoicebookEvent or wxNotebookEvent}
|
|
|
|
@row2col{wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED,
|
|
|
|
wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED}
|
|
|
|
@row2col{wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING,
|
|
|
|
wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING}
|
|
|
|
@row2col{EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
|
|
|
|
EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or EVT_NOTEBOOK_PAGE_CHANGED(id, fn)}
|
|
|
|
@row2col{EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
|
|
|
|
EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or EVT_NOTEBOOK_PAGE_CHANGING(id, fn)}
|
|
|
|
@endTable
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-18 19:04:03 -05:00
|
|
|
For orientation of the book controller, use following flags in style:
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-21 16:58:30 -05:00
|
|
|
@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
|
|
|
|