1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxListbook
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
9 #define wxLB_DEFAULT wxBK_DEFAULT
10 #define wxLB_TOP wxBK_TOP
11 #define wxLB_BOTTOM wxBK_BOTTOM
12 #define wxLB_LEFT wxBK_LEFT
13 #define wxLB_RIGHT wxBK_RIGHT
14 #define wxLB_ALIGN_MASK wxBK_ALIGN_MASK
16 wxEventType wxEVT_LISTBOOK_PAGE_CHANGED
;
17 wxEventType wxEVT_LISTBOOK_PAGE_CHANGING
;
22 wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
23 to show the labels instead of the tabs.
25 The underlying wxListCtrl displays page labels in a one-column report view
26 by default. Calling wxBookCtrl::SetImageList will implicitly switch the
27 control to use an icon view.
29 For usage documentation of this class, please refer to the base abstract class
30 wxBookCtrl. You can also use the @ref page_samples_notebook to see wxListbook in
35 Choose the default location for the labels depending on the current
36 platform (left everywhere except Mac where it is top).
38 Place labels above the page area.
40 Place labels on the left side.
42 Place labels on the right side.
44 Place labels below the page area.
47 @beginEventEmissionTable{wxBookCtrlEvent}
48 @event{EVT_LISTBOOK_PAGE_CHANGED(id, func)}
49 The page selection was changed.
50 Processes a @c wxEVT_LISTBOOK_PAGE_CHANGED event.
51 @event{EVT_LISTBOOK_PAGE_CHANGING(id, func)}
52 The page selection is about to be changed.
53 Processes a @c wxEVT_LISTBOOK_PAGE_CHANGING event.
54 This event can be vetoed.
61 @see wxBookCtrl, wxNotebook, @ref page_samples_notebook
63 class wxListbook
: public wxBookCtrlBase
72 Constructs a listbook control.
74 wxListbook(wxWindow
* parent
, wxWindowID id
,
75 const wxPoint
& pos
= wxDefaultPosition
,
76 const wxSize
& size
= wxDefaultSize
,
78 const wxString
& name
= wxEmptyString
);
81 Create the list book 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
);
92 Returns the wxListView associated with the control.
94 wxListView
* GetListView() const;