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.

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.

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.

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
sorry i forgot the url:

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

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

Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

the component was wrote by mike

(as in mike lischke see the top15 ;-)
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).
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.
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.
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
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 and on Torry's ( The first site has even a search function and is my preferred one ;-)

Ciao, Mike
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

From novice to tech pro — start learning today.