Opened 6 years ago

Closed 6 years ago

#14728 closed defect (fixed)

wxAuiNotebook - tabartgtk - gapbox not drawn, if active tab invisible

Reported by: jens Owned by:
Priority: normal Milestone: 2.9.5
Component: wxAui Version: stable-latest
Keywords: wxAuiNotebook, tabartgtk Cc:
Blocked By: Blocking:
Patch: yes


If the active tab is not visible tabartgtk does not draw the gapbox.
The attached patch fixes this by drawing an gtk-box for inactive tabs.
For active tabs we draw a box without border, because some themes have transparent gaps and a line would be visible at the bottom of the tab (in the gap).
I also increased the height of the gapbox, because on some themes the bottom (or top, depending on alignment) part of the box is visible otherwise (should be hidden by the tab-content).

Attachments (1)

wxAuiNotebook_gapbox.patch download (2.3 KB) - added by jens 6 years ago.
(gap-)box when active tab is invisible

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by jens

(gap-)box when active tab is invisible

comment:1 Changed 6 years ago by VZ

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

(In [72627]) Fix drawing of wxAuiNotebook with GTK theme when active tab is invisible.

Draw a box using gtk_paint_box() for the tabs, without border for the active
one to avoid an extra line across the gap, and with the border for the others.

Closes #14728.

Note: See TracTickets for help on using tickets.