]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/listbook.h
Applied #15226 with modifications: wxRichTextCtrl: Implement setting properties with...
[wxWidgets.git] / interface / wx / listbook.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: listbook.h
e54c96f1 3// Purpose: interface of wxListbook
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
e1b7217e
RD
8// wxListbook flags
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
15
ce7fe42e
VZ
16wxEventType wxEVT_LISTBOOK_PAGE_CHANGED;
17wxEventType wxEVT_LISTBOOK_PAGE_CHANGING;
e1b7217e 18
23324ae1
FM
19/**
20 @class wxListbook
7c913512 21
340e9651
FM
22 wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
23 to show the labels instead of the tabs.
7c913512 24
c1718122 25 The underlying wxListCtrl displays page labels in a one-column report view
340e9651 26 by default. Calling wxBookCtrl::SetImageList will implicitly switch the
c1718122
VZ
27 control to use an icon view.
28
340e9651
FM
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
23324ae1 31 action.
7c913512 32
23324ae1 33 @beginStyleTable
8c6791e4 34 @style{wxLB_DEFAULT}
23324ae1
FM
35 Choose the default location for the labels depending on the current
36 platform (left everywhere except Mac where it is top).
8c6791e4 37 @style{wxLB_TOP}
23324ae1 38 Place labels above the page area.
8c6791e4 39 @style{wxLB_LEFT}
23324ae1 40 Place labels on the left side.
8c6791e4 41 @style{wxLB_RIGHT}
23324ae1 42 Place labels on the right side.
8c6791e4 43 @style{wxLB_BOTTOM}
23324ae1
FM
44 Place labels below the page area.
45 @endStyleTable
7c913512 46
3051a44a 47 @beginEventEmissionTable{wxBookCtrlEvent}
340e9651
FM
48 @event{EVT_LISTBOOK_PAGE_CHANGED(id, func)}
49 The page selection was changed.
ce7fe42e 50 Processes a @c wxEVT_LISTBOOK_PAGE_CHANGED event.
340e9651
FM
51 @event{EVT_LISTBOOK_PAGE_CHANGING(id, func)}
52 The page selection is about to be changed.
ce7fe42e 53 Processes a @c wxEVT_LISTBOOK_PAGE_CHANGING event.
340e9651
FM
54 This event can be vetoed.
55 @endEventTable
56
23324ae1 57 @library{wxcore}
3c99e2fd 58 @category{bookctrl}
ce154616 59 @appearance{listbook}
7c913512 60
7c14fc8c 61 @see wxBookCtrl, wxNotebook, @ref page_samples_notebook
23324ae1 62*/
340e9651 63class wxListbook : public wxBookCtrlBase
23324ae1
FM
64{
65public:
23324ae1 66 /**
340e9651 67 Default ctor.
23324ae1
FM
68 */
69 wxListbook();
340e9651
FM
70
71 /**
72 Constructs a listbook control.
73 */
7c913512
FM
74 wxListbook(wxWindow* parent, wxWindowID id,
75 const wxPoint& pos = wxDefaultPosition,
76 const wxSize& size = wxDefaultSize,
77 long style = 0,
0a98423e 78 const wxString& name = wxEmptyString);
340e9651 79
e1b7217e
RD
80 /**
81 Create the list book control that has already been constructed with
82 the default constructor.
83 */
84 bool Create(wxWindow *parent,
85 wxWindowID id,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
88 long style = 0,
89 const wxString& name = wxEmptyString);
90
340e9651
FM
91 /**
92 Returns the wxListView associated with the control.
93 */
94 wxListView* GetListView() const;
23324ae1 95};
e54c96f1 96