wxAuiToolBarItem's disappear after hitting wxAuiToolBar close button

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
rsb
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

wxAuiToolBarItem's disappear after hitting wxAuiToolBar close button

Post by rsb »

Hello,

We've been using wxAuiToolBar's for some time. Recently, a problem arose after moving to
wxWidgets 3.1.0.

The toolbar's look fine when first initialized or when the controlling toggle button is
toggled on or off. However, after you close the toolbar using the close (x) button
and then click the toggle button, the toolbar items are gone.

We're using wxWidgets 3.1.0 on Windows 7 using VS 2015

Attached are a couple of pictures

1. Toggle button is clicked on.
2. Toolbar is closed using the close (x) button in the upper right corner of the toolbar and the
toggle button is clicked on again.
ToolbarInitial.PNG
ToolbarInitial.PNG (14.24 KiB) Viewed 638 times
ToolbarAfterCloseButton.PNG
ToolbarAfterCloseButton.PNG (7.33 KiB) Viewed 638 times
Any idea what's wrong here. These used to work fine.

Thanks.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7480
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxAuiToolBarItem's disappear after hitting wxAuiToolBar close button

Post by ONEEYEMAN »

Hi,
Can you reproduce it in the auidemo sample? Possibly with the small modifications to it?

If yes and the file will be modified - please post a patch here or even file a bug at trac.wxwidgets.org and attach a patch (if there is one) to the ticket.

Thank you.
Post Reply