X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3051a44a73502c2b03d1618d0a8e94274ee67e16..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/choicebk.h diff --git a/interface/wx/choicebk.h b/interface/wx/choicebk.h index bc3fec7ea1..3ad3277fb2 100644 --- a/interface/wx/choicebk.h +++ b/interface/wx/choicebk.h @@ -2,10 +2,21 @@ // Name: choicebk.h // 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_CHOICEBOOK_PAGE_CHANGED; +wxEventType wxEVT_CHOICEBOOK_PAGE_CHANGING; + /** @class wxChoicebook @@ -38,16 +49,16 @@ @beginEventEmissionTable{wxBookCtrlEvent} @event{EVT_CHOICEBOOK_PAGE_CHANGED(id, func)} The page selection was changed. - Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED event. + Processes a @c wxEVT_CHOICEBOOK_PAGE_CHANGED event. @event{EVT_CHOICEBOOK_PAGE_CHANGING(id, func)} The page selection is about to be changed. - Processes a @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING event. + Processes a @c wxEVT_CHOICEBOOK_PAGE_CHANGING event. This event can be vetoed (using wxNotifyEvent::Veto()). @endEventTable @library{wxcore} - @category{miscwnd} - @appearance{choicebook.png} + @category{bookctrl} + @appearance{choicebook} @see @ref overview_bookctrl, wxNotebook, @ref page_samples_notebook */ @@ -63,9 +74,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. */