bookctrl.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: bookctrl.h
  3. // Purpose: topic overview
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @page overview_bookctrl wxBookCtrl Overview
  9. @tableofcontents
  10. A book control is a convenient way of displaying multiple pages of information,
  11. displayed one page at a time. wxWidgets has five variants of this control:
  12. @li wxChoicebook: controlled by a wxChoice
  13. @li wxListbook: controlled by a wxListCtrl
  14. @li wxNotebook: uses a row of tabs
  15. @li wxSimplebook: doesn't allow the user to change the page at all.
  16. @li wxTreebook: controlled by a wxTreeCtrl
  17. @li wxToolbook: controlled by a wxToolBar
  18. See the @ref page_samples_notebook for an example of wxBookCtrl usage.
  19. Notice that wxSimplebook is special in that it only allows the program to
  20. change the selection, thus it's usually used in slightly different
  21. circumstances than the other variants.
  22. @see @ref group_class_bookctrl
  23. @section overview_bookctrl_bestbookctrl Best Book
  24. ::wxBookCtrl is mapped to the class best suited for a given platform. Currently
  25. it provides wxChoicebook for smartphones equipped with WinCE, and wxNotebook
  26. for all other platforms. The mapping consists of:
  27. @beginTable
  28. @row2col{ ::wxBookCtrl, wxChoicebook or wxNotebook }
  29. @row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED,
  30. @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED or
  31. @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED }
  32. @row2col{ @c wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING,
  33. @c wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING or
  34. @c wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING }
  35. @row2col{ @c EVT_BOOKCTRL_PAGE_CHANGED(id\, fn),
  36. @c EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) or
  37. @c EVT_NOTEBOOK_PAGE_CHANGED(id, fn) }
  38. @row2col{ @c EVT_BOOKCTRL_PAGE_CHANGING(id\, fn),
  39. @c EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) or
  40. @c EVT_NOTEBOOK_PAGE_CHANGING(id, fn) }
  41. @endTable
  42. For orientation of the book controller, use following flags in style:
  43. @li @b wxBK_TOP: controller above pages
  44. @li @b wxBK_BOTTOM: controller below pages
  45. @li @b wxBK_LEFT: controller on the left
  46. @li @b wxBK_RIGHT: controller on the right
  47. @li @b wxBK_DEFAULT: native controller placement
  48. */