I had a feeling it wouldn't be easy to change, but thought I would ask.  I like 
the selected items to be highlighted as they are in your TTreeview example.

I'm confused by your reference to slFiles.Names and slFiles.ValueFromIndex  I 
am trying to see how those got defined.  I see slFiles is a TStringList,  I 
thought a TStringList was strictly a list of strings, but this seems to be more 
like a list of records, but don't see how the records were ever defined.. and I 
didn't know this was something you could even do with TStringList.  In fact I 
like the records a lot better than just strings, but I'm trying to figure out 
how it was accomplished.

I'm also trying to figure out where the tree data is stored and if I can modify 
it?  Once the tree is built, I would like to go through and modifiy all the 
parent names with the total times of all the children under the parent.  Is 
this even possible with TTreeView?  Or is this another reason I might use 
something else?  Or will I have to re-build the input file to include the 
totals somehow?

James

-----Original Message-----
From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> On Behalf Of Jean 
SUZINEAU via fpc-pascal
Sent: Sunday, April 11, 2021 9:23 AM
To: fpc-pascal@lists.freepascal.org
Cc: Jean SUZINEAU <jean.suzin...@wanadoo.fr>
Subject: Re: [fpc-pascal] Directory Tree

Indeed, I think it's difficult (if possible) to change the behaviour of the 
multiselection this way.

The TTreeview.MultiSelectStyle property allows you to change from 
CtrL+Click to Shift+Click.

https://lazarus-ccr.sourceforge.io/docs/lcl/comctrls/tmultiselectstyle.html

To make the multi selection with just a left click, I think the best way would 
be to use the TVirtualTreeView with checkboxes.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to