Re: wxTreeCtrl::EnsureVisible expands only one item

Vadim Zeitlin <[email protected]> Thu, 12 Jun 2025 22:23:40 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Thu, 12 Jun 2025 11:59:57 -0700 (PDT) Dan Korn wrote:

DK> Now, however, in wxWidgets 3.2 on Windows, when EnsureVisible() is called, 
DK> all previously opened nodes are closed.  So only the last matching item is 
DK> left open.  This is a regression, as users are confused because they no 
DK> longer see all the matching items.
DK> 
DK> Was this an intentional change to wxTreeCtrl?  Is there any workaround, so 
DK> that all matching nodes can be opened?

 This is very surprising because wxTreeCtrl::EnsureVisible() is basically
unchanged since the very first version-controlled version from 1998. It is
also an extremely simple function which just sends TVM_ENSUREVISIBLE to the
tree control.

 Could the change be actually due to a change in behaviour in Windows
itself or do you really see different behaviour from different wx versions
under the same version of the OS?

 Regards,
VZ

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

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaEs3TAAKCRAG6kHeT2we
hq4OAKCRFFkR1O4xCFe4WUtKIezuUg7WeQCaAyrImQqnRiOKGGf1cpd8guHaD6w=
=GGUx
-----END PGP SIGNATURE-----