]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/choicebk.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxChoicebook
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 wxChoicebook is a class similar to wxNotebook, but uses a wxChoice control
13 to show the labels instead of the tabs.
15 There is no documentation for this class yet but its usage is identical to
16 wxNotebook (except for the features clearly related to tabs only), so
17 please refer to that class documentation for now. You can also use the
18 @ref page_samples_notebook to see wxChoicebook in action.
20 wxChoicebook allows the use of wxBookCtrlBase::GetControlSizer(), allowing
21 a program to add other controls next to the choice control. This is
22 particularly useful when screen space is restricted, as it often is when
23 wxChoicebook is being employed.
27 Choose the default location for the labels depending on the current
28 platform (left everywhere except Mac where it is top).
30 Place labels above the page area.
32 Place labels on the left side.
34 Place labels on the right side.
36 Place labels below the page area.
39 @beginEventTable{wxBookCtrlEvent}
40 @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)}
41 The page selection was changed. Processes a
42 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event.
43 @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)}
44 The page selection is about to be changed. Processes a
45 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. This event can be
46 vetoed (using wxNotifyEvent::Veto()).
52 @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook
54 @todo Write up wxBookCtrlBase documentation, where most of this class'
55 functionality comes from.
57 class wxChoicebook
: public wxBookCtrlBase
62 Constructs a choicebook control.
65 wxChoicebook(wxWindow
* parent
, wxWindowID id
,
66 const wxPoint
& pos
= wxDefaultPosition
,
67 const wxSize
& size
= wxDefaultSize
,
69 const wxString
& name
= wxEmptyStr
);
73 Returns the wxChoice associated with the control.
75 wxChoice
* GetChoiceCtrl() const;