]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/listbook.h
Add screenshots for wxNotebook, wxChoicebook, wxListbook
[wxWidgets.git] / interface / wx / listbook.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: listbook.h
e54c96f1 3// Purpose: interface of wxListbook
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxListbook
7c913512 11
340e9651
FM
12 wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
13 to show the labels instead of the tabs.
7c913512 14
c1718122 15 The underlying wxListCtrl displays page labels in a one-column report view
340e9651 16 by default. Calling wxBookCtrl::SetImageList will implicitly switch the
c1718122
VZ
17 control to use an icon view.
18
340e9651
FM
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
23324ae1 21 action.
7c913512 22
23324ae1 23 @beginStyleTable
8c6791e4 24 @style{wxLB_DEFAULT}
23324ae1
FM
25 Choose the default location for the labels depending on the current
26 platform (left everywhere except Mac where it is top).
8c6791e4 27 @style{wxLB_TOP}
23324ae1 28 Place labels above the page area.
8c6791e4 29 @style{wxLB_LEFT}
23324ae1 30 Place labels on the left side.
8c6791e4 31 @style{wxLB_RIGHT}
23324ae1 32 Place labels on the right side.
8c6791e4 33 @style{wxLB_BOTTOM}
23324ae1
FM
34 Place labels below the page area.
35 @endStyleTable
7c913512 36
0004982c 37 @beginEventTable{wxBookCtrlEvent}
340e9651
FM
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.
45 @endEventTable
46
23324ae1
FM
47 @library{wxcore}
48 @category{miscwnd}
7c913512 49
340e9651 50 @see wxBookCtrl(), wxNotebook, @ref page_samples_notebook
23324ae1 51*/
340e9651 52class wxListbook : public wxBookCtrlBase
23324ae1
FM
53{
54public:
23324ae1 55 /**
340e9651 56 Default ctor.
23324ae1
FM
57 */
58 wxListbook();
340e9651
FM
59
60 /**
61 Constructs a listbook control.
62 */
7c913512
FM
63 wxListbook(wxWindow* parent, wxWindowID id,
64 const wxPoint& pos = wxDefaultPosition,
65 const wxSize& size = wxDefaultSize,
66 long style = 0,
67 const wxString& name = wxEmptyStr);
340e9651
FM
68
69 /**
70 Returns the wxListView associated with the control.
71 */
72 wxListView* GetListView() const;
23324ae1 73};
e54c96f1 74