Opened 6 months ago

Closed 6 months ago

#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

Description

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
 */
#ifdef wxUSE_BOOKCTRL
#   ifdef wxABORT_ON_CONFIG_ERROR
#       error "wxUSE_BOOKCTRL is defined automatically, don't define it"
#   else
#       undef wxUSE_BOOKCTRL
#   endif
#endif

#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
                        wxUSE_LISTBOOK || \
                        wxUSE_CHOICEBOOK || \
                        wxUSE_TOOLBOOK || \
                        wxUSE_TREEBOOK)

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 6 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.