1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxChoicebook
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
10 #define wxCHB_DEFAULT wxBK_DEFAULT
11 #define wxCHB_TOP wxBK_TOP
12 #define wxCHB_BOTTOM wxBK_BOTTOM
13 #define wxCHB_LEFT wxBK_LEFT
14 #define wxCHB_RIGHT wxBK_RIGHT
15 #define wxCHB_ALIGN_MASK wxBK_ALIGN_MASK
17 wxEventType wxEVT_CHOICEBOOK_PAGE_CHANGED
;
18 wxEventType wxEVT_CHOICEBOOK_PAGE_CHANGING
;
23 wxChoicebook is a class similar to wxNotebook, but uses a wxChoice control
24 to show the labels instead of the tabs.
26 For usage documentation of this class, please refer to the base abstract class
27 wxBookCtrl. You can also use the @ref page_samples_notebook to see wxChoicebook in
30 wxChoicebook allows the use of wxBookCtrlBase::GetControlSizer(), allowing
31 a program to add other controls next to the choice control. This is
32 particularly useful when screen space is restricted, as it often is when
33 wxChoicebook is being employed.
37 Choose the default location for the labels depending on the current
38 platform (left everywhere except Mac where it is top).
40 Place labels above the page area.
42 Place labels on the left side.
44 Place labels on the right side.
46 Place labels below the page area.
49 @beginEventEmissionTable{wxBookCtrlEvent}
50 @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)}
51 The page selection was changed.
52 Processes a @c wxEVT_CHOICEBOOK_PAGE_CHANGED event.
53 @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)}
54 The page selection is about to be changed.
55 Processes a @c wxEVT_CHOICEBOOK_PAGE_CHANGING event.
56 This event can be vetoed (using wxNotifyEvent::Veto()).
61 @appearance{choicebook}
63 @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook
65 class wxChoicebook
: public wxBookCtrlBase
70 Constructs a choicebook control.
73 wxChoicebook(wxWindow
* parent
, wxWindowID id
,
74 const wxPoint
& pos
= wxDefaultPosition
,
75 const wxSize
& size
= wxDefaultSize
,
77 const wxString
& name
= wxEmptyString
);
81 Create the choicebook control that has already been constructed with
82 the default constructor.
84 bool Create(wxWindow
*parent
,
86 const wxPoint
& pos
= wxDefaultPosition
,
87 const wxSize
& size
= wxDefaultSize
,
89 const wxString
& name
= wxEmptyString
);
93 Returns the wxChoice associated with the control.
95 wxChoice
* GetChoiceCtrl() const;