The tree select will work for first branch (trunk) since the list view
index corresponds. Try a 2nd/Nth branch while the upper branches are
collapsed. In that scenario, it no longer matches.
In my directory structure, I’ve only expanded the selected path. All
higher branches are collapsed. All lower branches are collapsed. Only the
branches leading to a user file are expanded.
As I repeated before, using mouse navigation is fine (works as expected),
the issue is selecting an item in the Nth branch where N > 1, and previous
branches are collapsed.
Thx.
On Sat, 6 Apr 2024 at 19:11, Máximo Castañeda <dmarc-noreply@xxxxxxxxxxxxx>
wrote:
En sábado, 6 de abril de 2024, 17:58:49 CEST, Zenja Solaja <
solaja@xxxxxxxxx> escribió:
Code is very simple:highlighted, but fLastSelected is not set in code path.
fTreeOutlineView->FullListItemAt(idx)->Select(); // correct item is
//fTreeOutlineView->Select(idx); //incorrect item is highlighted, butwith fLastSelected naturally pointing to highlighted item
specific file on app start (last session restore). I calculate the full
The BoutlineListView is a directory tree, and I’m highlighting a
list idx.
I've tried the code in the first response and it works as it should. I
even tried directly selecting with the "full list" index and even though it
didn't select that item (or none at all) if some were collapsed, there's no
error, all as expected.