wxAUI, only allow a pane to resize horizontally? Any way to do this?

16 views
Skip to first unread message

Tony Kennedy

unread,
Nov 17, 2022, 4:09:40 AM11/17/22
to wx-users
Hi all,

I've been experimenting but cannot seem to find a way to force an AUI floating pane to only resize horizontally.

I think the code below should work. But it makes no difference, the pane just resizes both horizontally and vertically.

Any ideas are more than welcome.

Tony.


wxAuiPaneInfo& info = pwxAuiManager->GetPane("pane name");
wxWindow* pWindow = info.window;
wxSize szBestSize = pWindow->GetBestSize();
info.MaxSize(-1, szBestSize.GetHeight()).MinSize(szBestSize);
pwxAuiManager->Update();
Reply all
Reply to author
Forward
0 new messages