Re[4]: wxTreeCtrl::EnsureVisible expands only one item

Vadim Zeitlin <[email protected]> Tue, 8 Jul 2025 17:00:34 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Fri, 13 Jun 2025 12:06:16 -0700 (PDT) Dan Korn wrote:

DK> I can reproduce the problem in the TreeCtrl sample, by replacing the 
DK> function MyFrame::OnEnsureVisible() with this:

 Thanks, I can indeed reproduce the problem using this code.

DK> In wxWidgets 3.1, all the nodes that are marked in Cyan are also visible, 
DK> with their parents expanded.

 I hadn't seen the offending commit originally because I was looking at the
changes since the last 3.1 release, 3.1.7, but it turns out you must have
been using 3.1.2 or earlier because this got broken in e8712b3c56
(Make wxTreeCtrl::EnsureVisible() work while frozen in wxMSW, 2019-07-09)
which appeared in 3.1.3, see https://github.com/wxWidgets/wxWidgets/issues/18435

 I've fixed this in 80fe572c55 (Fix multiple wxTreeCtrl::EnsureVisible()
while frozen in wxMSW, 2025-07-08) now, so it should work again in 3.3.1
when it is released soon.

 Thanks again for reporting this!
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaG0ykgAKCRAG6kHeT2we
hoxsAJ4xLfTdzpgKtF6IGdTVTmOiLDtkMwCdFYGexy+ZwMkztNeOEQ32xB2zA+w=
=dZzy
-----END PGP SIGNATURE-----