Docked pane status using a wxAuiManager

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
bertolino
Experienced Solver
Experienced Solver
Posts: 77
Joined: Wed Aug 14, 2013 8:07 am
Location: France
Contact:

Docked pane status using a wxAuiManager

Post by bertolino »

Hello,

I'm using a wxAuiManager with a pane that can float and can be docked. When it is docked on the whole height of its parent, it is OK since its height is available to correctly manage the scroll bar of the panel embedded in the pane:
toolbar1.png
toolbar1.png (28.57 KiB) Viewed 725 times
But I remarked that it can also be docked at any arbitrary height of its parent like this:
toolbar2.png
toolbar2.png (17.63 KiB) Viewed 725 times
In this case, is it possible to get the pane height (I couldn't find this)? If not, is it possible to prevent this arbitrary height docking?
Many thanks for your help,

Pascal
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Docked pane status using a wxAuiManager

Post by doublemax »

I don't know much about wxAUI, but looking through the API, i found "wxAuiManager::ProcessDockResult" which should be helpful. https://docs.wxwidgets.org/trunk/classw ... db88c0ef91

With wxAuiPaneInfo::window gives you access to the pane dimensions.
Use the source, Luke!
bertolino
Experienced Solver
Experienced Solver
Posts: 77
Joined: Wed Aug 14, 2013 8:07 am
Location: France
Contact:

Re: Docked pane status using a wxAuiManager

Post by bertolino »

Dear Doublemax,

What a brilliant idea! I missed the right information but you didn't.
Actually, I didn't find it in the window member but right next to it in the rect member.
You really made my day as you can see with the right scrollbar below.
With my grateful thanks,
Pascal
toolbar3.png
toolbar3.png (17.94 KiB) Viewed 658 times
Post Reply