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
Knows some wx things
Knows some wx things
Posts: 41
Joined: Wed Aug 14, 2013 8:07 am
Location: France
Contact:

Docked pane status using a wxAuiManager

Post by bertolino » Tue Nov 05, 2019 9:03 pm

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 189 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 189 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: 14305
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Docked pane status using a wxAuiManager

Post by doublemax » Wed Nov 06, 2019 6:03 pm

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
Knows some wx things
Knows some wx things
Posts: 41
Joined: Wed Aug 14, 2013 8:07 am
Location: France
Contact:

Re: Docked pane status using a wxAuiManager

Post by bertolino » Wed Nov 06, 2019 9:52 pm

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 122 times

Post Reply