Avatar of Mike Littlewood
Mike LittlewoodFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

How to loop through the items of the virtual treeview

Ok this is a very simple question, just annoyed I can't find the answer!!

A standard treeview is easy to loop through the nodes
for i := 0 to treeview1.items.count - 1 do

What is the equivalent property for the virtual treeview to return each node one at a time so I can process my own code?
Delphi

Avatar of undefined
Last Comment
MerijnB
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Mike Littlewood

ASKER

Perfect, thanks Merijn

Sorry for all simple questions, but its the first time I've really had a go at this component. Simple things before are slightly more complicated :o)
Avatar of MerijnB
MerijnB
Flag of Netherlands image

never mind the simple question. VirtualTreeView is very powerful, but also quite complex.

In the same category: GetFirstVisible() / GetNextVisible(), GetFirstSelected() / GetNextSelected()
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo