1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxToolbook
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
8 #define wxTBK_BUTTONBAR 0x0100
9 #define wxTBK_HORZ_LAYOUT 0x8000
11 wxEventType wxEVT_TOOLBOOK_PAGE_CHANGED
;
12 wxEventType wxEVT_TOOLBOOK_PAGE_CHANGING
;
18 wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
19 show the labels instead of the tabs.
21 There is no documentation for this class yet but its usage is identical to
22 wxNotebook (except for the features clearly related to tabs only), so please
23 refer to that class documentation for now. You can also use the
24 @ref page_samples_notebook to see wxToolbook in action.
27 @style{wxTBK_BUTTONBAR}
28 Use wxButtonToolBar-based implementation under Mac OS (ignored under
30 @style{wxTBK_HORZ_LAYOUT}
31 Shows the text and the icons alongside, not vertically stacked (only
32 implement under Windows and GTK 2 platforms as it relies on
33 @c wxTB_HORZ_LAYOUT flag support).
36 The common wxBookCtrl styles described in the @ref overview_bookctrl are
39 @beginEventEmissionTable{wxBookCtrlEvent}
40 @event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
41 The page selection was changed.
42 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGED event.
43 @event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
44 The page selection is about to be changed.
45 Processes a @c wxEVT_TOOLBOOK_PAGE_CHANGING event.
46 This event can be vetoed (using wxNotifyEvent::Veto()).
52 @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
53 @ref page_samples_notebook
55 class wxToolbook
: public wxBookCtrlBase
60 Constructs a choicebook control.
63 wxToolbook(wxWindow
* parent
, wxWindowID id
,
64 const wxPoint
& pos
= wxDefaultPosition
,
65 const wxSize
& size
= wxDefaultSize
,
67 const wxString
& name
= wxEmptyString
);
71 Create the tool book control that has already been constructed with
72 the default constructor.
74 bool Create(wxWindow
*parent
,
76 const wxPoint
& pos
= wxDefaultPosition
,
77 const wxSize
& size
= wxDefaultSize
,
79 const wxString
& name
= wxEmptyString
);
82 Returns the wxToolBarBase associated with the control.
84 wxToolBarBase
* GetToolBar() const;