]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/toolbook.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxToolbook 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  12     wxToolbook is a class similar to wxNotebook but which uses a wxToolBar to 
  13     show the labels instead of the tabs. 
  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 please 
  17     refer to that class documentation for now. You can also use the 
  18     @ref page_samples_notebook to see wxToolbook in action. 
  21     @style{wxTBK_BUTTONBAR} 
  22         Use wxButtonToolBar-based implementation under Mac OS (ignored under 
  24     @style{wxTBK_HORZ_LAYOUT} 
  25         Shows the text and the icons alongside, not vertically stacked (only 
  26         implement under Windows and GTK 2 platforms as it relies on 
  27         @c wxTB_HORZ_LAYOUT flag support). 
  30     The common wxBookCtrl styles described in the @ref overview_bookctrl are 
  33     @beginEventTable{wxBookCtrlEvent} 
  34     @event{EVT_TOOLBOOK_PAGE_CHANGED(id, func)} 
  35         The page selection was changed. 
  36         Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED event. 
  37     @event{EVT_TOOLBOOK_PAGE_CHANGING(id, func)} 
  38         The page selection is about to be changed. 
  39         Processes a @c wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING event. 
  40         This event can be vetoed (using wxNotifyEvent::Veto()). 
  46     @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook, 
  47          @ref page_samples_notebook 
  49 class wxToolbook 
: public wxBookCtrlBase
 
  54         Constructs a choicebook control. 
  57     wxToolbook(wxWindow
* parent
, wxWindowID id
, 
  58                  const wxPoint
& pos 
= wxDefaultPosition
, 
  59                  const wxSize
& size 
= wxDefaultSize
, 
  61                  const wxString
& name 
= wxEmptyStr
); 
  65         Returns the wxToolBarBase associated with the control. 
  67     wxToolBarBase
* GetToolBar() const;