Page 1 of 1

Docked pane status using a wxAuiManager

Posted: Tue Nov 05, 2019 9:03 pm
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 724 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 724 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

Re: Docked pane status using a wxAuiManager

Posted: Wed Nov 06, 2019 6:03 pm
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.

Re: Docked pane status using a wxAuiManager

Posted: Wed Nov 06, 2019 9:52 pm
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 657 times