#include </home/zeitlin/src/wx/github/interface/wx/toolbook.h>
wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to show the labels instead of the tabs.
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 Notebook Sample to see wxToolbook in action.
This class supports the following styles:
wxTB_HORZ_LAYOUT
flag support). The common wxBookCtrl styles described in the wxBookCtrl Overview are also supported.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros for events emitted by this class:
wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
event. wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
event. This event can be vetoed (using wxNotifyEvent::Veto()). Public Member Functions | |
bool | Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxEmptyString) |
Create the tool book control that has already been constructed with the default constructor. | |
wxToolBarBase * | GetToolBar () const |
Returns the wxToolBarBase associated with the control. | |
wxToolbook () | |
Constructs a choicebook control. | |
wxToolbook (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxEmptyString) | |
Constructs a choicebook control. |
wxToolbook::wxToolbook | ( | ) |
Constructs a choicebook control.
wxToolbook::wxToolbook | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = wxEmptyString |
||
) |
Constructs a choicebook control.
bool wxToolbook::Create | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = wxEmptyString |
||
) |
Create the tool book control that has already been constructed with the default constructor.
Reimplemented from wxBookCtrlBase.
wxToolBarBase* wxToolbook::GetToolBar | ( | ) | const |
Returns the wxToolBarBase associated with the control.