1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxToolbook
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #define wxTBK_BUTTONBAR 0x0100
10 #define wxTBK_HORZ_LAYOUT 0x8000
12 wxEventType wxEVT_TOOLBOOK_PAGE_CHANGED
;
13 wxEventType wxEVT_TOOLBOOK_PAGE_CHANGING
;
19 wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
20 show the labels instead of the tabs.
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.
28 @style{wxTBK_BUTTONBAR}
29 Use wxButtonToolBar-based implementation under Mac OS (ignored under
31 @style{wxTBK_HORZ_LAYOUT}
32 Shows the text and the icons alongside, not vertically stacked (only
33 implement under Windows and GTK 2 platforms as it relies on
34 @c wxTB_HORZ_LAYOUT flag support).
37 The common wxBookCtrl styles described in the @ref overview_bookctrl are
40 @beginEventEmissionTable{wxBookCtrlEvent}
41 @event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
42 The page selection was changed.
43 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGED event.
44 @event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
45 The page selection is about to be changed.
46 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGING event.
47 This event can be vetoed (using wxNotifyEvent::Veto()).
53 @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
54 @ref page_samples_notebook
56 class wxToolbook
: public wxBookCtrlBase
61 Constructs a choicebook control.
64 wxToolbook(wxWindow
* parent
, wxWindowID id
,
65 const wxPoint
& pos
= wxDefaultPosition
,
66 const wxSize
& size
= wxDefaultSize
,
68 const wxString
& name
= wxEmptyString
);
72 Create the tool book control that has already been constructed with
73 the default constructor.
75 bool Create(wxWindow
*parent
,
77 const wxPoint
& pos
= wxDefaultPosition
,
78 const wxSize
& size
= wxDefaultSize
,
80 const wxString
& name
= wxEmptyString
);
83 Returns the wxToolBarBase associated with the control.
85 wxToolBarBase
* GetToolBar() const;