Selecting (highlighting) several items in a TTreeView

I seem to only be able to select or highlight one item at a time in a TTreeView.  Is it possible to highlight a range of items at once?  For example, say I want to highlight all of the Level 0 siblings, instead of just one at a time?

I'd give more than 50 points, but the option to give 100 points is not available (crossed-out) even though I have 174 points it says.

Thanks.
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

intheCommented:
Hi
it not possible in normal treeview but you can write a component and use ownerdraw to do it.
id advise downloading this one called treent that can do multiselect.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
intheCommented:
sorry i forgot the url:

http://www.lischke-online.de/TreeNT.html

Regards Barry
0
Tom KnowltonWeb developerAuthor Commented:
This component does what I want.

How did you find this component?  I mean, how did you know about it?

Thanks.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

intheCommented:
the component was wrote by mike

(as in mike lischke see the top15 ;-)
0
Tom KnowltonWeb developerAuthor Commented:
Ahhh, okay.  Cool.

I downloaded and installed the TreeNT component.  It is pretty nice, but it is intimidating to change to the new component this late in my project.

I'm wondering if maybe I can use the State Index icon to show that multiple items in the Tree are selected?  (Hence my other question).
0
intheCommented:
ok i shall try to se if get that working

you want if someone clicks on a treeview node the item is "selected" and when some other node is clicked it is also selected and to show this by the state of the icons.
0
Tom KnowltonWeb developerAuthor Commented:
Yes - I am thinking maybe I can use the StateIndex to show what is highlighted and what is not.

I want my TreeView to have the same highlighting functionality as Windows Explorer.

Click on one item, shift - click on an item a few rows down, and all the items in-between become highlighted.

ctrl - click on individual items, and each one becomes highlighted.

click normally elsewhere, and highlighted items are deselected.
0
intheCommented:
i had a quick go but it didnt work as i wanted it too :-(
if i make it work i shall pass on how i do it
cheers
0
LischkeCommented:
Wow, this was a very quick conversation :-) I had to buy it to read the comments here 8-O.

knowlton, just a little tip. You can find components like my TreeNT on www.delphipages.com and on Torry's (www.torry.ru). The first site has even a search function and is my preferred one ;-)

Ciao, Mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.