Dynamically adding wxAuiToolBarItem to wxAuiToolBar has minor graphical artifact

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.
joemaniaci
Experienced Solver
Experienced Solver
Posts: 52
Joined: Thu Dec 08, 2016 2:42 pm

Dynamically adding wxAuiToolBarItem to wxAuiToolBar has minor graphical artifact

Postby joemaniaci » Wed Aug 16, 2017 7:11 pm

The goal is to populate the wxAuiToolBar with, essentially, image buttons that represent images to be analyzed or directories of images to be analyzed. It's going to act like a "Recent Documents..." control, only graphically.

I've just noticed that when I add my new wxAuiToolBarItem to it, that the border doesn't draw 100% correctly. It does draw it correctly the second I grab the control and move it. I came across other people having other minor issues like this, but wanted to make sure it's not something indicative of me doing something wrong.

This is occuring in a wxCommandEvent handler for my wxFrame, where I add a pane containing a wxTreeCtrl, add the wxAuiToolBarItem, Update() the wxAuiManager, and then Refresh() the wxAuiToolbar. If you try to call wxAuiToolBar->Refresh() before wxAuiManager->Update() the wxAuiToolBarItem ends up inside the overflow items area. So not sure if that might indicate other issues as well.

Thanks

Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 3 guests