]>
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 | |
bfac6166 BP |
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. | |
7c913512 | 19 | |
bfac6166 BP |
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. | |
7c913512 | 24 | |
23324ae1 | 25 | @beginStyleTable |
8c6791e4 | 26 | @style{wxCHB_DEFAULT} |
23324ae1 FM |
27 | Choose the default location for the labels depending on the current |
28 | platform (left everywhere except Mac where it is top). | |
8c6791e4 | 29 | @style{wxCHB_TOP} |
23324ae1 | 30 | Place labels above the page area. |
8c6791e4 | 31 | @style{wxCHB_LEFT} |
23324ae1 | 32 | Place labels on the left side. |
8c6791e4 | 33 | @style{wxCHB_RIGHT} |
23324ae1 | 34 | Place labels on the right side. |
8c6791e4 | 35 | @style{wxCHB_BOTTOM} |
23324ae1 FM |
36 | Place labels below the page area. |
37 | @endStyleTable | |
7c913512 | 38 | |
3e97a905 | 39 | @beginEventTable{wxBookCtrlEvent} |
8c6791e4 | 40 | @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)} |
bfac6166 BP |
41 | The page selection was changed. Processes a |
42 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event. | |
8c6791e4 | 43 | @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)} |
bfac6166 BP |
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()). | |
47 | @endEventTable | |
48 | ||
23324ae1 FM |
49 | @library{wxcore} |
50 | @category{miscwnd} | |
7c913512 | 51 | |
bfac6166 BP |
52 | @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook |
53 | ||
54 | @todo Write up wxBookCtrlBase documentation, where most of this class' | |
55 | functionality comes from. | |
23324ae1 | 56 | */ |
bfac6166 | 57 | class wxChoicebook : public wxBookCtrlBase |
23324ae1 FM |
58 | { |
59 | public: | |
60 | //@{ | |
61 | /** | |
62 | Constructs a choicebook control. | |
63 | */ | |
64 | wxChoicebook(); | |
7c913512 FM |
65 | wxChoicebook(wxWindow* parent, wxWindowID id, |
66 | const wxPoint& pos = wxDefaultPosition, | |
67 | const wxSize& size = wxDefaultSize, | |
68 | long style = 0, | |
69 | const wxString& name = wxEmptyStr); | |
23324ae1 | 70 | //@} |
bfac6166 BP |
71 | |
72 | /** | |
73 | Returns the wxChoice associated with the control. | |
74 | */ | |
75 | wxChoice * GetChoiceCtrl() const; | |
23324ae1 | 76 | }; |
e54c96f1 | 77 |