]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/listbook.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxListbook
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
13 to show the labels instead of the tabs.
15 The underlying wxListCtrl displays page labels in a one-column report view
16 by default. Calling wxBookCtrl::SetImageList will implicitly switch the
17 control to use an icon view.
19 For usage documentation of this class, please refer to the base abstract class
20 wxBookCtrl. You can also use the @ref page_samples_notebook to see wxListbook in
25 Choose the default location for the labels depending on the current
26 platform (left everywhere except Mac where it is top).
28 Place labels above the page area.
30 Place labels on the left side.
32 Place labels on the right side.
34 Place labels below the page area.
37 @beginEventTable{wxBookCtrlEvent}
38 @event{EVT_LISTBOOK_PAGE_CHANGED(id, func)}
39 The page selection was changed.
40 Processes a @c wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event.
41 @event{EVT_LISTBOOK_PAGE_CHANGING(id, func)}
42 The page selection is about to be changed.
43 Processes a @c wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING event.
44 This event can be vetoed.
49 @appearance{listbook.png}
51 @see wxBookCtrl, wxNotebook, @ref page_samples_notebook
53 class wxListbook
: public wxBookCtrlBase
62 Constructs a listbook control.
64 wxListbook(wxWindow
* parent
, wxWindowID id
,
65 const wxPoint
& pos
= wxDefaultPosition
,
66 const wxSize
& size
= wxDefaultSize
,
68 const wxString
& name
= wxEmptyString
);
71 Returns the wxListView associated with the control.
73 wxListView
* GetListView() const;