]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/listbook.h
Corrected library association
[wxWidgets.git] / interface / wx / listbook.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: listbook.h
3 // Purpose: interface of wxListbook
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 @class wxListbook
11
12 wxListbook is a class similar to wxNotebook but which uses a wxListCtrl
13 to show the labels instead of the tabs.
14
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.
18
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
21 action.
22
23 @beginStyleTable
24 @style{wxLB_DEFAULT}
25 Choose the default location for the labels depending on the current
26 platform (left everywhere except Mac where it is top).
27 @style{wxLB_TOP}
28 Place labels above the page area.
29 @style{wxLB_LEFT}
30 Place labels on the left side.
31 @style{wxLB_RIGHT}
32 Place labels on the right side.
33 @style{wxLB_BOTTOM}
34 Place labels below the page area.
35 @endStyleTable
36
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.
45 @endEventTable
46
47 @library{wxcore}
48 @category{miscwnd}
49
50 @see wxBookCtrl(), wxNotebook, @ref page_samples_notebook
51 */
52 class wxListbook : public wxBookCtrlBase
53 {
54 public:
55 /**
56 Default ctor.
57 */
58 wxListbook();
59
60 /**
61 Constructs a listbook control.
62 */
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);
68
69 /**
70 Returns the wxListView associated with the control.
71 */
72 wxListView* GetListView() const;
73 };
74