]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/toolbook.h
Fix errors in handling of maximum field in wxGenericProgressDialog.
[wxWidgets.git] / interface / wx / toolbook.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: toolbook.h
e54c96f1 3// Purpose: interface of wxToolbook
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
23324ae1
FM
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxToolbook
7c913512 11
f992f2ae
BP
12 wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
13 show the labels instead of the tabs.
7c913512 14
f992f2ae
BP
15 There is no documentation for this class yet but its usage is identical to
16 wxNotebook (except for the features clearly related to tabs only), so please
17 refer to that class documentation for now. You can also use the
18 @ref page_samples_notebook to see wxToolbook in action.
7c913512 19
23324ae1 20 @beginStyleTable
8c6791e4 21 @style{wxTBK_BUTTONBAR}
f992f2ae
BP
22 Use wxButtonToolBar-based implementation under Mac OS (ignored under
23 other platforms).
8c6791e4 24 @style{wxTBK_HORZ_LAYOUT}
f992f2ae 25 Shows the text and the icons alongside, not vertically stacked (only
340e9651
FM
26 implement under Windows and GTK 2 platforms as it relies on
27 @c wxTB_HORZ_LAYOUT flag support).
23324ae1 28 @endStyleTable
7c913512 29
f992f2ae
BP
30 The common wxBookCtrl styles described in the @ref overview_bookctrl are
31 also supported.
32
3051a44a 33 @beginEventEmissionTable{wxBookCtrlEvent}
340e9651
FM
34 @event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
35 The page selection was changed.
36 Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED event.
37 @event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
38 The page selection is about to be changed.
39 Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING event.
40 This event can be vetoed (using wxNotifyEvent::Veto()).
41 @endEventTable
42
23324ae1 43 @library{wxcore}
3c99e2fd 44 @category{bookctrl}
7c913512 45
f992f2ae
BP
46 @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
47 @ref page_samples_notebook
23324ae1 48*/
f992f2ae 49class wxToolbook : public wxBookCtrlBase
23324ae1
FM
50{
51public:
340e9651
FM
52 //@{
53 /**
54 Constructs a choicebook control.
55 */
56 wxToolbook();
57 wxToolbook(wxWindow* parent, wxWindowID id,
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
60 long style = 0,
61 const wxString& name = wxEmptyStr);
62 //@}
7c913512 63
340e9651
FM
64 /**
65 Returns the wxToolBarBase associated with the control.
66 */
67 wxToolBarBase* GetToolBar() const;
23324ae1 68};
e54c96f1 69