]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/toolbook.h
support for iPhone callbacks
[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
e1b7217e
RD
9#define wxTBK_BUTTONBAR 0x0100
10#define wxTBK_HORZ_LAYOUT 0x8000
11
ce7fe42e
VZ
12wxEventType wxEVT_TOOLBOOK_PAGE_CHANGED;
13wxEventType wxEVT_TOOLBOOK_PAGE_CHANGING;
e1b7217e
RD
14
15
23324ae1
FM
16/**
17 @class wxToolbook
7c913512 18
f992f2ae
BP
19 wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
20 show the labels instead of the tabs.
7c913512 21
f992f2ae
BP
22 There is no documentation for this class yet but its usage is identical to
23 wxNotebook (except for the features clearly related to tabs only), so please
24 refer to that class documentation for now. You can also use the
25 @ref page_samples_notebook to see wxToolbook in action.
7c913512 26
23324ae1 27 @beginStyleTable
8c6791e4 28 @style{wxTBK_BUTTONBAR}
f992f2ae
BP
29 Use wxButtonToolBar-based implementation under Mac OS (ignored under
30 other platforms).
8c6791e4 31 @style{wxTBK_HORZ_LAYOUT}
f992f2ae 32 Shows the text and the icons alongside, not vertically stacked (only
340e9651
FM
33 implement under Windows and GTK 2 platforms as it relies on
34 @c wxTB_HORZ_LAYOUT flag support).
23324ae1 35 @endStyleTable
7c913512 36
f992f2ae
BP
37 The common wxBookCtrl styles described in the @ref overview_bookctrl are
38 also supported.
39
3051a44a 40 @beginEventEmissionTable{wxBookCtrlEvent}
340e9651
FM
41 @event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
42 The page selection was changed.
ce7fe42e 43 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGED event.
340e9651
FM
44 @event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
45 The page selection is about to be changed.
ce7fe42e 46 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGING event.
340e9651
FM
47 This event can be vetoed (using wxNotifyEvent::Veto()).
48 @endEventTable
49
23324ae1 50 @library{wxcore}
3c99e2fd 51 @category{bookctrl}
7c913512 52
f992f2ae
BP
53 @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
54 @ref page_samples_notebook
23324ae1 55*/
f992f2ae 56class wxToolbook : public wxBookCtrlBase
23324ae1
FM
57{
58public:
340e9651
FM
59 //@{
60 /**
61 Constructs a choicebook control.
62 */
63 wxToolbook();
64 wxToolbook(wxWindow* parent, wxWindowID id,
65 const wxPoint& pos = wxDefaultPosition,
66 const wxSize& size = wxDefaultSize,
67 long style = 0,
6f65f436 68 const wxString& name = wxEmptyString);
340e9651 69 //@}
7c913512 70
e1b7217e
RD
71 /**
72 Create the tool book control that has already been constructed with
73 the default constructor.
74 */
75 bool Create(wxWindow *parent,
76 wxWindowID id,
77 const wxPoint& pos = wxDefaultPosition,
78 const wxSize& size = wxDefaultSize,
79 long style = 0,
80 const wxString& name = wxEmptyString);
81
340e9651
FM
82 /**
83 Returns the wxToolBarBase associated with the control.
84 */
85 wxToolBarBase* GetToolBar() const;
23324ae1 86};
e54c96f1 87