]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: choicebk.h | |
e54c96f1 | 3 | // Purpose: interface of wxChoicebook |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxChoicebook | |
7c913512 | 11 | |
bfac6166 BP |
12 | wxChoicebook is a class similar to wxNotebook, but uses a wxChoice control |
13 | to show the labels instead of the tabs. | |
7c913512 | 14 | |
340e9651 FM |
15 | For usage documentation of this class, please refer to the base abstract class |
16 | wxBookCtrl. You can also use the @ref page_samples_notebook to see wxChoicebook in | |
17 | action. | |
7c913512 | 18 | |
bfac6166 BP |
19 | wxChoicebook allows the use of wxBookCtrlBase::GetControlSizer(), allowing |
20 | a program to add other controls next to the choice control. This is | |
21 | particularly useful when screen space is restricted, as it often is when | |
22 | wxChoicebook is being employed. | |
7c913512 | 23 | |
23324ae1 | 24 | @beginStyleTable |
8c6791e4 | 25 | @style{wxCHB_DEFAULT} |
23324ae1 FM |
26 | Choose the default location for the labels depending on the current |
27 | platform (left everywhere except Mac where it is top). | |
8c6791e4 | 28 | @style{wxCHB_TOP} |
23324ae1 | 29 | Place labels above the page area. |
8c6791e4 | 30 | @style{wxCHB_LEFT} |
23324ae1 | 31 | Place labels on the left side. |
8c6791e4 | 32 | @style{wxCHB_RIGHT} |
23324ae1 | 33 | Place labels on the right side. |
8c6791e4 | 34 | @style{wxCHB_BOTTOM} |
23324ae1 FM |
35 | Place labels below the page area. |
36 | @endStyleTable | |
7c913512 | 37 | |
3051a44a | 38 | @beginEventEmissionTable{wxBookCtrlEvent} |
8c6791e4 | 39 | @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)} |
340e9651 FM |
40 | The page selection was changed. |
41 | Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED event. | |
8c6791e4 | 42 | @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)} |
340e9651 FM |
43 | The page selection is about to be changed. |
44 | Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. | |
45 | This event can be vetoed (using wxNotifyEvent::Veto()). | |
bfac6166 BP |
46 | @endEventTable |
47 | ||
23324ae1 | 48 | @library{wxcore} |
3c99e2fd | 49 | @category{bookctrl} |
7c14fc8c | 50 | @appearance{choicebook.png} |
7c913512 | 51 | |
bfac6166 | 52 | @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook |
23324ae1 | 53 | */ |
bfac6166 | 54 | class wxChoicebook : public wxBookCtrlBase |
23324ae1 FM |
55 | { |
56 | public: | |
57 | //@{ | |
58 | /** | |
59 | Constructs a choicebook control. | |
60 | */ | |
61 | wxChoicebook(); | |
7c913512 FM |
62 | wxChoicebook(wxWindow* parent, wxWindowID id, |
63 | const wxPoint& pos = wxDefaultPosition, | |
64 | const wxSize& size = wxDefaultSize, | |
65 | long style = 0, | |
66 | const wxString& name = wxEmptyStr); | |
23324ae1 | 67 | //@} |
bfac6166 BP |
68 | |
69 | /** | |
70 | Returns the wxChoice associated with the control. | |
71 | */ | |
72 | wxChoice * GetChoiceCtrl() const; | |
23324ae1 | 73 | }; |
e54c96f1 | 74 |