Thema: Delphi Count tree root nodes

Einzelnen Beitrag anzeigen

Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.356 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: Count tree root nodes

  Alt 26. Aug 2014, 11:03
If performance is an issue for you, why don't you use the virtual trees? They are faster by orders of magnitude...
http://www.jam-software.com/virtual-treeview/

And for your problem you have VirtualStringTree1.ChildCount[CurrentNode] .
This property only fetches the appropriate value, because this value is already known, so there is no need for counting or anything. Faster is impossible.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat