X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..71abf17edb285a2a028b473e723cd52f79d1fb29:/interface/wx/choicebk.h diff --git a/interface/wx/choicebk.h b/interface/wx/choicebk.h index 879e4e024d..c055842d2a 100644 --- a/interface/wx/choicebk.h +++ b/interface/wx/choicebk.h @@ -3,20 +3,30 @@ // Purpose: interface of wxChoicebook // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + +// wxChoicebook flags +#define wxCHB_DEFAULT wxBK_DEFAULT +#define wxCHB_TOP wxBK_TOP +#define wxCHB_BOTTOM wxBK_BOTTOM +#define wxCHB_LEFT wxBK_LEFT +#define wxCHB_RIGHT wxBK_RIGHT +#define wxCHB_ALIGN_MASK wxBK_ALIGN_MASK + +wxEventType wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED; +wxEventType wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING; + /** @class wxChoicebook - @wxheader{choicebk.h} wxChoicebook is a class similar to wxNotebook, but uses a wxChoice control 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 - @ref page_samples_notebook to see wxChoicebook in action. + For usage documentation of this class, please refer to the base abstract class + wxBookCtrl. You can also use the @ref page_samples_notebook to see wxChoicebook in + action. wxChoicebook allows the use of wxBookCtrlBase::GetControlSizer(), allowing a program to add other controls next to the choice control. This is @@ -37,23 +47,21 @@ Place labels below the page area. @endStyleTable - @beginEventTable{wxChoicebookEvent} + @beginEventEmissionTable{wxBookCtrlEvent} @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)} - The page selection was changed. Processes a - wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event. + The page selection was changed. + Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED event. @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)} - The page selection is about to be changed. Processes a - wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. This event can be - vetoed (using wxNotifyEvent::Veto()). + The page selection is about to be changed. + Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. + This event can be vetoed (using wxNotifyEvent::Veto()). @endEventTable @library{wxcore} - @category{miscwnd} + @category{bookctrl} + @appearance{choicebook.png} @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook - - @todo Write up wxBookCtrlBase documentation, where most of this class' - functionality comes from. */ class wxChoicebook : public wxBookCtrlBase { @@ -67,9 +75,21 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxEmptyStr); + const wxString& name = wxEmptyString); //@} + /** + Create the choicebook control that has already been constructed with + the default constructor. + */ + bool Create(wxWindow *parent, + wxWindowID id, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxEmptyString); + + /** Returns the wxChoice associated with the control. */