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