2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: toolbook.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxToolbook
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxToolbook
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-08 16:46:34 -04:00
|
|
|
wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to
|
|
|
|
show the labels instead of the tabs.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-08 16:46:34 -04:00
|
|
|
There is no documentation for this class yet but its usage is identical to
|
|
|
|
wxNotebook (except for the features clearly related to tabs only), so please
|
|
|
|
refer to that class documentation for now. You can also use the
|
|
|
|
@ref page_samples_notebook to see wxToolbook in action.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@beginStyleTable
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxTBK_BUTTONBAR}
|
2008-05-08 16:46:34 -04:00
|
|
|
Use wxButtonToolBar-based implementation under Mac OS (ignored under
|
|
|
|
other platforms).
|
2008-04-06 10:43:04 -04:00
|
|
|
@style{wxTBK_HORZ_LAYOUT}
|
2008-05-08 16:46:34 -04:00
|
|
|
Shows the text and the icons alongside, not vertically stacked (only
|
2008-10-13 06:27:19 -04:00
|
|
|
implement under Windows and GTK 2 platforms as it relies on
|
|
|
|
@c wxTB_HORZ_LAYOUT flag support).
|
2008-03-08 08:52:38 -05:00
|
|
|
@endStyleTable
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-08 16:46:34 -04:00
|
|
|
The common wxBookCtrl styles described in the @ref overview_bookctrl are
|
|
|
|
also supported.
|
|
|
|
|
2009-02-18 12:58:51 -05:00
|
|
|
@beginEventEmissionTable{wxBookCtrlEvent}
|
2008-10-13 06:27:19 -04:00
|
|
|
@event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)}
|
|
|
|
The page selection was changed.
|
|
|
|
Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED event.
|
|
|
|
@event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)}
|
|
|
|
The page selection is about to be changed.
|
|
|
|
Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING event.
|
|
|
|
This event can be vetoed (using wxNotifyEvent::Veto()).
|
|
|
|
@endEventTable
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxcore}
|
2009-02-20 06:34:52 -05:00
|
|
|
@category{bookctrl}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-05-08 16:46:34 -04:00
|
|
|
@see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
|
|
|
|
@ref page_samples_notebook
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-05-08 16:46:34 -04:00
|
|
|
class wxToolbook : public wxBookCtrlBase
|
2008-03-08 08:52:38 -05:00
|
|
|
{
|
|
|
|
public:
|
2008-10-13 06:27:19 -04:00
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructs a choicebook control.
|
|
|
|
*/
|
|
|
|
wxToolbook();
|
|
|
|
wxToolbook(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxEmptyStr);
|
|
|
|
//@}
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-13 06:27:19 -04:00
|
|
|
/**
|
|
|
|
Returns the wxToolBarBase associated with the control.
|
|
|
|
*/
|
|
|
|
wxToolBarBase* GetToolBar() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|