#16025 closed defect (fixed)

wxUSE_BOOKCTRL not defined for wxUSE_AUI

Reported by: vid Owned by:
Priority: normal Milestone:
Component: wxAui Version:
Keywords: Cc: vid512@…
Blocked By: Blocking:
Patch: no


wxAuiNotebook requires wxBookCtrlBase. This class is controlled by wxUSE_BOOKCTRL flag, whhich is set automatically in chkconf.h:

   wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
   are used
#       error "wxUSE_BOOKCTRL is defined automatically, don't define it"
#   else
#       undef wxUSE_BOOKCTRL
#   endif

                        wxUSE_LISTBOOK || \
                        wxUSE_CHOICEBOOK || \
                        wxUSE_TOOLBOOK || \

However, if custom wx build doesn't include any of 5 listed controls, but wants to use wxAuiNotebook, this code won't set the wxUSE_BOOKCTRL flag. I suggest adding wxUSE_AUI to the list of flags.

Change History (1)

comment:1 Changed 21 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [76011]) Define wxUSE_BOOKCTRL as 1 if wxUSE_AUI==1.

wxAuiNotebook needs wxBookCtrlBase.

Closes #16025.

Note: See TracTickets for help on using tickets.