Is it possible to disable docking of wxAuiToolbar temporally?

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
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Is it possible to disable docking of wxAuiToolbar temporally?

Post by csniper »

I want to disable the moving of the toolbar temporarily. Is this possible?
gul_garak
Knows some wx things
Knows some wx things
Posts: 26
Joined: Thu Apr 05, 2018 5:19 pm

Re: Is it possible to disable docking of wxAuiToolbar temporally?

Post by gul_garak »

csniper wrote:I want to disable the moving of the toolbar temporarily. Is this possible?
You should be able to get the pane that corresponds to the toolbar from the AUI manager and change the properties so that it can't be docked, then update the AUI manager. And when you want it to be able to dock again enable docking again for that pane.

- Alejandro
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Is it possible to disable docking of wxAuiToolbar temporally?

Post by csniper »

Thanks! It works!
Post Reply