Contents Up Previous Next

wxBookCtrl overview

Classes: wxNotebook, wxListbook, wxChoicebook

Introduction
Best book


Introduction

A book control is a convenient way of displaying multiple pages of information, displayed one page at a time. wxWidgets has three variants of this control:


Best book

wxBookCtrl is mapped to the class best suited for a given platform. Currently it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook for all other platforms. The mapping consists of:

wxBookCtrl wxChoicebook or wxNotebook
wxBookCtrlEvent wxChoicebookEvent or wxNotebookEvent
wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
EVT_BOOKCTRL_PAGE_CHANGED(id, fn) EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or EVT_NOTEBOOK_PAGE_CHANGED(id, fn)
EVT_BOOKCTRL_PAGE_CHANGING(id, fn) EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or EVT_NOTEBOOK_PAGE_CHANGING(id, fn)
wxBC_TOP wxCHB_TOP or wxNB_TOP
wxBC_BOTTOM wxCHB_BOTTOM or wxNB_BOTTOM
wxBC_LEFT wxCHB_LEFT or wxNB_LEFT
wxBC_RIGHT wxCHB_RIGHT or wxNB_RIGHT
wxBC_DEFAULT wxCHB_DEFAULT or wxNB_DEFAULT

See samples/widgets for an example of wxBookCtrl usage.