]> git.saurik.com Git - wxWidgets.git/blame - interface/choicebk.h
mac paths updated
[wxWidgets.git] / interface / choicebk.h
CommitLineData
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
11 @wxheader{choicebk.h}
7c913512 12
bfac6166
BP
13 wxChoicebook is a class similar to wxNotebook, but uses a wxChoice control
14 to show the labels instead of the tabs.
7c913512 15
bfac6166
BP
16 There is no documentation for this class yet but its usage is identical to
17 wxNotebook (except for the features clearly related to tabs only), so
18 please refer to that class documentation for now. You can also use the
19 @ref page_samples_notebook to see wxChoicebook in action.
7c913512 20
bfac6166
BP
21 wxChoicebook allows the use of wxBookCtrlBase::GetControlSizer(), allowing
22 a program to add other controls next to the choice control. This is
23 particularly useful when screen space is restricted, as it often is when
24 wxChoicebook is being employed.
7c913512 25
23324ae1 26 @beginStyleTable
8c6791e4 27 @style{wxCHB_DEFAULT}
23324ae1
FM
28 Choose the default location for the labels depending on the current
29 platform (left everywhere except Mac where it is top).
8c6791e4 30 @style{wxCHB_TOP}
23324ae1 31 Place labels above the page area.
8c6791e4 32 @style{wxCHB_LEFT}
23324ae1 33 Place labels on the left side.
8c6791e4 34 @style{wxCHB_RIGHT}
23324ae1 35 Place labels on the right side.
8c6791e4 36 @style{wxCHB_BOTTOM}
23324ae1
FM
37 Place labels below the page area.
38 @endStyleTable
7c913512 39
bfac6166 40 @beginEventTable{wxChoicebookEvent}
8c6791e4 41 @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)}
bfac6166
BP
42 The page selection was changed. Processes a
43 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event.
8c6791e4 44 @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)}
bfac6166
BP
45 The page selection is about to be changed. Processes a
46 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. This event can be
47 vetoed (using wxNotifyEvent::Veto()).
48 @endEventTable
49
23324ae1
FM
50 @library{wxcore}
51 @category{miscwnd}
7c913512 52
bfac6166
BP
53 @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook
54
55 @todo Write up wxBookCtrlBase documentation, where most of this class'
56 functionality comes from.
23324ae1 57*/
bfac6166 58class wxChoicebook : public wxBookCtrlBase
23324ae1
FM
59{
60public:
61 //@{
62 /**
63 Constructs a choicebook control.
64 */
65 wxChoicebook();
7c913512
FM
66 wxChoicebook(wxWindow* parent, wxWindowID id,
67 const wxPoint& pos = wxDefaultPosition,
68 const wxSize& size = wxDefaultSize,
69 long style = 0,
70 const wxString& name = wxEmptyStr);
23324ae1 71 //@}
bfac6166
BP
72
73 /**
74 Returns the wxChoice associated with the control.
75 */
76 wxChoice * GetChoiceCtrl() const;
23324ae1 77};
e54c96f1 78