Corrected wxTreeCtrl::DoGetBestSize(), added DoGetBestClientWidth (PR #26097)

12 views
Skip to first unread message

RobertRoeb

unread,
Jan 13, 2026, 5:13:56 AM (yesterday) Jan 13
to wx-...@googlegroups.com, Subscribed

For the generic wxTreeCtrl:

  • Corrected ::DoGetBestSize(), added DoGetBestClientWidth
  • Adapted both to the same calculation of the required virtual size that is used in AdjustScrollbars() removing the need for adding magic 4
  • Now, importantly, wxTreeBook actually calls a real DoGetBestClientWidth() based on a known height and can correctly figure out if a vertical scrollbar is needed
  • This removes the ugly horizontal scrollbar in wxTreeBook when a the horizontal scrollbar appears.
  • Tested on macOS 26

You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26097

Commit Summary

  • 178a27f Corrected wxGenericTreeCtrl::DoGetBestSize(), added DoGetBestClientWidth()

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26097@github.com>

Reply all
Reply to author
Forward
0 new messages